Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Add page parent to results
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 8 months ago.
- AuthorPosts
- July 26, 2018 at 2:04 pm #18784
Dear agent,
I’ve got a question:
I made different pages with the same name but under a different parent page. For example:
– Education
— Support– Certification
— SupportNow, when I search ‘Support’ I get double results saying ‘support’. It would be nice that it would show as: education > support or certification > support
I see this is on the documentation page search but I can’t find the option and don’t know if this is possible for page hierarchy but I do hope this could be possible.
Looking forward to your reply,
Kind regards,
DirkJuly 27, 2018 at 11:51 am #18794Hi Dirk,
I believe the easiest solution would be to use a custom code to get the parent post title, then add it to the child post.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
This will add the parent page title before the child title in Parent > Child format.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 30, 2018 at 12:25 pm #18821Dear Ernest,
Thanks for your detailed reply. I’ve tested it and I works.
I thank you for this fix! 😀
Kind regards,
DirkJuly 30, 2018 at 4:53 pm #18826You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.