Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show category in result title › Reply To: Show category in result title
August 9, 2017 at 5:21 pm
#14199
Hi!
Yes, with a custom filter code it is actually possible. I believe you are looking for this tutorial: https://wp-dreams.com/knowledge-base/showing-the-category-titles-in-the-result-title/
To move the category titles before the actual title, just change this line from the tutorial code:
$pageposts[$k]->title .= " ".$cats;
..to this:
$pageposts[$k]->title = $cats .' '. $pageposts[$k]->title;
I hope this helps!
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)