Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Horizontal search URL don't take correct language › Reply To: Horizontal search URL don't take correct language
June 22, 2020 at 4:00 pm
#28027
Participant
Hi Ernest,
We tried adding this code in our theme function.php file, but not resolve the issue.
Nothing change 🙂
We add tis code in ‘/var/www/bh.fitness/htdocs/content/plugins/ajax-search-pro/includes/views/results/horizontal.php’:
<?php if (!empty($r->post_type)) $r->link = get_post_permalink($r->id); ?>
And resolve it. It’s correct?
Thanks,