• Resolved banddesign

    (@banddesign)


    Hi there,

    First off, thank you for the great plugin!

    I’ve setup a custom post type called Products using CPT UI plugin. Within Products I have a ACF text field called Product Codes.

    One issue I’m having is – if I type a Product Code in the search form, the results page shows no results. Here is the paste.ee debug

    I have set override in plugin settings and set the Products as post type to search and also specified the ACF field to use. If I was to search for Product name etc.. search results display correctly. I’ve also tried the ACF setting to use get_field instead get_post_meta.

    The other issue I’m having is even though I’ve defined Products to be the post type that is to be searched. Pages such as Home and Contact are shown in the search results.

    Appreciate any help you can give and am willing to purchase PRO if it will solve the issues.

    Thanks again,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you for your kind words, and all the details, it helps me a lot.

    If you enable the live search feature, does the live search display the correct results (based on the acf fields)?
    If so, then the search override is probably not working with the theme you have. Make sure that you have this configuration: https://i.imgur.com/TRsVA8d.png
    If you still see different results in the live search results list and the WooCommerce results page, then the override has probably no effect.
    If you have any other search plugin, then I suggest de-activating it, otherwise probably the theme has a hard-coded query somewhere, that cannot be overwritten by the plugin.

    Best,
    Ernest M.

    Thread Starter banddesign

    (@banddesign)

    Hi Ernest,

    Thank you for the information. You were correct about the hard-coded query! Our issue is fixed.

    Thanks for your time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Form ACF Text Field’ is closed to new replies.