How to include “post object” post names in search results?
-
Hi there,
I have a question that is very similar to an existing support thread located here.
It seems that the above thread was resolved by using a workaround, hence me creating this.
To explain my issue further, I use a “Products” custom post type on my website that lists various affiliate products. I include these products in my WordPress posts by using ACFs relationship “post object” field type.
I would like to be able to use Ivory Search to search for a particular product by the product name (post title) and display the results.
To attempt to do this, I enabled the appropriate (post object) custom field in Ivory Search settings using the “Search selected custom fields values” option, as well as enabling the “Search post title” option under “Extras”.
When I then search for a product on the frontend by its (post title) name no results are shown. It does seem, however, that Ivory Search will display the correct results if I search by the postID number, but this is obviously not practical for an end user visiting my site.
I have also been playing around with a competitor plugin (SearchWP) and noticed they have a code snippet located here that fixes this issue when using their plugin, but I would prefer to use Ivory Search so wondered if you had a solution to this that I can apply?
Many thanks.
Tom
- The topic ‘How to include “post object” post names in search results?’ is closed to new replies.