Support » Plugin: ACF: Better Search » Search ACF only?

  • Resolved peterstavrou

    (@peterstavrou)


    Is it possible to make it so that searches ONLY ACF and nothing else?

    I have added the below but it’s still searching more than just the name for example.

    function acfbs_post_fields( $fields ) {
      $fields = ['name'];
      return $fields;
    }
    add_filter( 'acfbs_search_post_object_fields', 'acfbs_post_fields', 10, 1 );
    • This topic was modified 4 months, 4 weeks ago by peterstavrou.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @peterstavrou,

    Thanks for your message.

    If you want to achieve this, return an empty array using this filter.

    Best,
    Mateusz

    Hi, same question.
    I thought it should be done in settings.
    If you give me right code and where to put it, it would be great.
    Thank you.
    btw. I am going to translate your plugin to czech language 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.