• Hi, I am trying to search by ACF and WP_Query “s” param, and I am not getting results.

    I got the same result using vanilla WP_Query without any other plugin and the those two params make an AND relationship.

    I was hoping to fix that issue with this plugin.

    Am I doing something wrong or is this out of the scope of the plugin?

    Here is a gist of what I am doing right now:
    https://gist.github.com/ltroya-as/4dd3acd06b0a452220e5c4f546c3529a

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ltroya

    (@ltroya)

    Also tried removing the meta_query and tax_query section and got 1/50 results.

    Not sure if I am missing some configuration. The only result that returned me was the one where Roger appear at the beginning of the result

    Cheers

    • This reply was modified 1 year, 4 months ago by ltroya.
    Thread Starter ltroya

    (@ltroya)

    Not sure if it’s related. I am adding Custom Post Types and ACF through code instead of the UI. Does that matter?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @ltroya,

    Thank you for your message.

    The code you sent modifies the query by searching only one ACF field. My plugin searches all ACF fields and does not affect tax_query parameter.

    How can I help you? I’m sorry, but I don’t quite understand the problem so that I can say something.

    Best,
    Mateusz

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using WP_Query “s” param and ACF search’ is closed to new replies.