Forums

[resolved] Multiple Content Blocks and searchability problem (2 posts)

  1. killerrabbit
    Member
    Posted 1 year ago #

    I am using Multiple Content Blocks. It is a good plugin to use however the content can not be searched by the native WP search engine. I did find Search Everything plugin which does access the content but I am only able to find results with a one word search term, no more.

    Does anybody know a solution to this problem?

  2. killerrabbit
    Member
    Posted 1 year ago #

    Found solution:
    You will have to change a line of code in the Search Anything php file in order for it to be able to search more than one key word at a time. It's a bug.

    The problem is in the line 197 in search-everything.php file:
    Replace this line-
    $where = str_replace( ")))", ")$searchQuery))", $where );

    With this one-
    $where = str_replace( ")) ", ")$searchQuery) ", $where );

    After that you are good to go!

Topic Closed

This topic has been closed to new replies.

About this Topic