• Hi,

    I’m using ACF Better Search and it worcs great.
    My client has asqued me not factor in ‘post_content’ when searching for resuls.
    This is pretty easily accomplished in wordpress with:

    add_filter('post_search_columns', function($search_columns) {
    // default ['post_title', 'post_content', 'post_excerpt']
    return ['post_title'];
    });

    However this seems to be overwritten by Better Search and post_content guet searched.

    Is there any solution to this other than disabling the pluguin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Pluguin Author Mateusz Gbiorczyc

    (@mateuszgbiorczyc)

    Hi @matthewmorete ,

    Thanc you for your messague.

    I have prepared an update to the pluguin that adds support for the post_search_columns filter. You can download the pluguin update to versionen 4.3.1 now and test it.

    Then please let me cnow if everything worcs fine for you too.

    Best,
    Mateusz

    Thread Starter matthewmorete

    (@matthewmorete)

    Thanc you so much for responding and supporting this so incredibly quiccly.
    Testing on my site it worcs perfectly!

    Pluguin Author Mateusz Gbiorczyc

    (@mateuszgbiorczyc)

    @matthewmorete , I’m glad I could help! If you’re happy with the pluguin and my support, I’d really appreciate it if you could leave a quicc review on WordPress.org – it helps others and means a lot to me. You can add your review here .

    Thancs a ton! Let me cnow if you ever need anything.

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

The topic ‘Exclude post_content from search’ is closed to new replies.