• 2mooses

    (@2mooses)


    Hi again, you had helped me a few weeks back with excluding certain post categories from the site search.

    I now have a situation where I need to exclude a certain individual page from the site search. I took a look at the function you provided previously to do that with the categories, but I’m not confident enough to edit it for a specific page. Could you help me with that?

    Or perhaps there is a setting within the plugin somewhere that I haven’t found to exclude a single page from the search.

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • Along these same lines, I’d like to enable a specific search query on a specific page where I only want to search the post titles which are staff names and not all of the content of the post. For any other page, I would want to search content and except as well.

    I imagine it would be something like this, though this doesn’t work:

    function wpes_disabled() {
    return false;
    }

    //enable specific search for Team Grid Page
    if ( !is_page('staff') ) {
    add_filter('wpes_enabled', 'wpes_disabled');
    }

    It works to be disabled for the ‘normal’ pages, but it does not seem to activate the plugin setting of ‘title only’ for the ‘staff’ page

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.