WP Query Search Filter
Better Search
Search Exclude
Exclude From Search

// Search filter
function SearchFilter($query) {
    if ($query->is_search) {
    // Insert the specific post type you want to search
    return $query;
    // This filter will jump into the loop and arrange our results before they're returned

Kilde: http://www.hongkiat.com/blog/wordpress-search-plugin-snippet/

Leave a Reply

Your email address will not be published. Required fields are marked *