Reply To: Show category in result title

#14199

Ernest Marcinko
Keymaster

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 :)