Support

Account

Home Forums ACF PRO WP Search Reply To: WP Search

  • Hi @mmjaeger

    You could give this plugin a try: https://wordpress.org/plugins/search-everything/. I basically extends WP search functionality to include also the custom fields.

    Alternatively, you could hook a function to pre_get_posts action hook. In your function, first verify whether you are in the search page, if so, then proceed to create a meta query using the search input. Here are link to resources which will help you achieve this:
    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
    https://codex.wordpress.org/Class_Reference/WP_Meta_Query

    Hope this helps 🙂