Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search for CPT not returning results
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 9 months ago.
- AuthorPosts
- February 28, 2018 at 12:34 am #16953
Folder: /srv/users/serverpilot/apps/point59-wp/public
Hi there!
For some reason, the search is not searching my listings. I tried using the index search and the regular one. I’m sure it’s a simple setting that I am overlooking, but I can’t seem to find it. Can you please take a look for me?
https://point59.com/looking-to-buy/
Thanks again for the awesome plugin!
– MikeFebruary 28, 2018 at 10:20 am #16957Hi Mike,
It did not return results, because the taxonomy filters you have are for the ‘property’ custom post type, not for the listing, and the city filter had the ‘Ajax’ city selected – which does not match any listing obviously. (as listings does not have that taxonomy)
I have added an ‘All cities’ option to the filter, so initially the search will ignore that, and will be able to return the listing results: https://i.imgur.com/cvNSNsD.png
If you want the filter to be ignored by custom post types that does not have the taxonomy/custom field defined in the filter, you can turn on these options: https://i.imgur.com/VaXRbLQ.png
I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 28, 2018 at 5:49 pm #16962Okay, great! Thanks for your help!
March 6, 2018 at 4:13 am #17015Hi there,
I’m still having trouble with one aspect. I can’t seem to detect any custom fields. For example, under the General Options -> Sources screen, there doesn’t seem to be any custom fields for my post type under “Search all custom fields?”.
Thanks,
MikeMarch 7, 2018 at 10:36 am #17034Hi Mike,
Have you tried to enter the custom field names you are looking for into the search field there: https://i.imgur.com/tchwux1.png
Best,
It will not list any custom fields by default, you need to search for it by name.
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.