Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Categories page to appear in search results?
This topic contains 4 replies, has 2 voices, and was last updated by martinrtr16 3 years, 1 month ago.
- AuthorPosts
- April 14, 2020 at 4:18 pm #26720
Hi – is it possible to have categories appear in the search results?
I am developing the site above and am wondering if it’s possible to include categories in the search results. Just to be clear, I don’t just want the search to have looked in categories and returned results from them, I want the actual category to appear as a result.
As an example. At the moment there are just two products ‘GR Abbott’ & ‘Abbott & Co’. If a user wants to see what ‘products’ are in Devon I want them to be able to put Devon in the search field and have the category page (http://staging.englishchurchartandarchitecture.co.uk/product-category/counties/devon/) appear as a result.
Is this possible?
Thanks
MartinApril 15, 2020 at 9:55 am #26737Hi Martin,
Yes, that is possible. You are looking for these options.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 15, 2020 at 10:13 am #26739Hi Ernest –
Ok – what am I doing wrong! I already had ‘product – Product Categories’ dragged into the taxonomies I want to include. However unlike in your screen shot where there is a slider for ‘return categories as results’, I have ‘return post categories as results’, i.e. not product categories. Please see attached screen shot showing my set up for Sources 2
Attachments:
You must be logged in to view attached files.April 15, 2020 at 10:24 am #26742Hi,
I logged in to check, and I found the problem 🙂 On that same panel, in the exclusion box there were two items: https://i.imgur.com/91yjdhk.png
Best,
That is not correct, as it requires numeric values (IDs), not the names or slugs. I cleared the option, and now it should work all right.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 15, 2020 at 10:46 am #26744Ok perfect 🙂 – thank you
- AuthorPosts
You must be logged in to reply to this topic.