Forums Forums Search & Filter Pro Trying to search only by post title, not content

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #114228

    Hello

    I’m trying to only search through the TITLE of the post, and not the content or any other meta info.

    For example when I search “Jo”, I should not receive a post with the title of “David”.

    I am using relevanssi, and using a filter in my functions to only search through post title

    add_filter('relevanssi_index_content', 'contentoff');
    function contentoff() {
        return false;
    }

    However, I’m still getting back “David” when I type “Jo”, and the likes…

    Is there a way to do this with S&F pro?

    Thanks,
    matt

    Trevor
    #114245

    Instead of using Relevanssi, use WP Extended Search. Deactivate Relevanssi, switch of the settings in S&F Pro, and set up WP Extended Search to search just titles.

Viewing 2 posts - 1 through 2 (of 2 total)