• Resolved Tom

    (@tomhargreaves)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thank you for your question.

    Do you mean you have created the product custom post type using the ACF plugin and you are not using the WooCommerce plugin?

    Do you want to search the custom fields of these products?

    Could you please share the screenshot of how you have configured the search form and also share the page URL from your site where the search form is displaying so that I can troubleshoot it?

    For screenshots, you can simply provide a link to an image through Google Drive, Dropbox, screencast.com, http://imgur.com/ or other image service. 🙂

    Best regards,

    Thread Starter Tom

    (@tomhargreaves)

    Thank you for the reply.

    Yes, you are correct – the “Products” custom post type was created using CPT UI plugin, not part of WooCommerce.

    No, I don’t need to search the custom fields of the Products, I just need the Products post title (as opposed to the PostID) to be searchable if a product is added to my posts post object field.

    To illustrate, below is a screenshot of the post object ACF field which is present in my WordPress posts. In this example the WordPress posts name is “Fred’s Setup”. As you can see I have 5 different products added via an ACF post object field. I need to it be configured so that if I was to search for “Astro A40” (products post title), then “Fred’s Setup” would be returned as a search result.

    Below is my Ivory Search settings:


    Many thanks.

    • This reply was modified 3 years, 1 month ago by Tom.
    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    What I can understand from your shared screenshots is that the “Fred’s Setup” is a post and the “Gear Products” is a custom field created using the ACF and the “Astro A40” is one of the custom field value.

    You want to display the “Fred’s Setup” post if the user searches the custom field value “Astro A40”.

    What search result do you get if the user searches “Astro A40”?

    Could you please share the page URL from your site where the search form is displaying so that I can help you?

    Thread Starter Tom

    (@tomhargreaves)

    What search result do you get if the user searches “Astro A40”?

    No results. As stated in the original post, I only get search results if I search for the PageID number, which is no good to an end user since they wont know this.

    I would rather not share my website URL publicly – I have sent an email to your gmail account shown on your wordpress profile.

    Many thanks.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    No results. As stated in the original post, I only get search results if I search for the PageID number, which is no good to an end user since they wont know this.

    The plugin does not provide the functionality to search by page ID so I am not sure why it is searching by page page ID on your website.

    This may be the functionality of your theme or any other plugin that you are using on your website.

    I would rather not share my website URL publicly – I have sent an email to your gmail account shown on your wordpress profile.

    You can contact me on https://ivorysearch.com/contact/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to include “post object” post names in search results?’ is closed to new replies.