• Hi,

    Firstly, thank you very much for creating this plugin and working so hard on it – it really is amazing when using ACF on a site at expanding searches.

    A problem I’m having currently (due to my lack of SQL querying knowledge admittedly) is that I need to expand search across the site to taxonomy terms etc as well, not just ACF fields.

    If I try a custom code snippet that someone might typically add, it seems to conflict with your code.

    i.e. posts_search filter depending on the priority I set, my custom snippet overrides yours or yours overrides mine.

    Instead of fighting with this when your plugin already handles SQL querying, I wondered if you might be happy or open to widening the scope of the plugin to search other areas of the site like taxonomy terms, authors etc as well?

    Many thanks,

    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @philsola,

    Thank you for your message.

    We have no plans to support searching across taxonomies or authors. These are completely different SQL queries than searching across posts.

    Best,
    Mateusz

    Thread Starter Philip Sola

    (@philsola)

    Hi Mateusz,

    No worries, would you be open to passing the search term in your acfbs_sql_where filter at least so people can extend it if needed?

    return apply_filters( ‘acfbs_sql_where’, $where, $this->wpdb );

    Currently, without hooking into the WP posts_search filter myself and overriding the plugin, I don’t get access to the search term itself to be able to do anything helpful with the $where string.

    Thanks,

    Phil

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @philsola You can use the posts_search filter for this purpose. That’s what I’m using in this file.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Expand Search’ is closed to new replies.