You could probably do it my modifying the loop through the pre_get_posts
hook.
function wpse163459_search_exclude_post_format( $query ) {
if( $query->is_main_query() && $query->is_search() ) {
$tax_query = array( array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-quote' ),
'operator' => 'NOT IN',
) );
$query->set( 'tax_query', $tax_query );
}
}
add_action( 'pre_get_posts', 'wpse163459_search_exclude_post_format' );
Related Posts:
- Do not allow to search certain words
- Default WP search excluding specific characters, is it possible?
- Exclude posts with certain meta data from search results
- grep for special characters in Unix
- How can I implement a location based (zip code) search in WordPress?
- How to highlight search terms without plugin
- How do I remove Pages from search?
- Search Using Post ID
- Complex Search functionality. Advice needed
- How to use next_post_link and previous_post_link on single posts in search results
- Why is there a class=”screen-reader-text” on my search button?
- template_include for search.php makes WordPress think its on the home page
- can’t limit search to only pages
- How to exclude post body from WP search
- Search outside of the “loop”
- Replace URL with Site Title in Search Results
- Force WP to use a certain search template
- get_query_var(‘s’) not working
- How to show a random selection of posts from the search
- Best way to Integrate Google Search?
- How to add additional search terms (e.g. synonyms) to the search?
- Combine internal search with Google custom search?
- Any reason why search result lists only one entry?
- Display just child pages of a certain page in search results
- How to make wordpress default search to woocommerce search
- pre_get_posts action: Search by post_title and post_content with different search phrase in the same query
- Why won’t is_search work inside functions.php?
- Search functionality – include date, category and author search
- Redirect All Search Links Containing – to + on WordPress
- WordPress Search matching hyphenated words
- How to stop WordPress Search form from searching only in current page?
- How can I make a search form that can search taxonomies and posts?
- How can I include author (their archive page) in search results?
- How to search media library alt text and title fields
- how to create search and filter form generating “plus” symbols in url in between category names?
- URL search link for ‘category__and’ instead of php query
- Meta query: How do I return posts within a date period from a given month?
- Creating a Searchable PDF Archive of Publications
- How to change tab’s title in search results pages? [closed]
- Customise Excerpt start and end
- Display post titles that match string in post content
- Search WooCommerce Products in WordPress
- Search – Only search for post meta field
- Search Form Based On Tutorial Not Working
- how to show Author information in search results
- Sitelinks Search box schema confusion
- Display Search Results after search 1st link
- Make archive page show up in search results?
- How can I add search box in single.php?
- Connecting Google Site Search with WordPress Taxonomies/Categories/Tags
- WordPress custom search by post type
- WP_User_Query not searching
- “Revision” records in wp_posts have original post type instead of “revision”
- search page not found? (search.php or searchpage.php)
- Search engine for WP as CMS [closed]
- Why does this search.php not work?
- Breadcrumbs: Search result not displayed when static page is on top
- Can’t place two custom post types into the WordPress search query?
- Replacement search plugin that reads widgets or catalogs entire page?
- Media Library / Backend: How can I search for text in the ALT Text field?
- How to fetch Email addres of an author via ID?
- WordPress custom search only works from some pages
- WordPress search – Display the paragraph which has the searched word/term
- Search to include external content
- How to exclude specific post_type from default search?
- Modify main search form to search user too
- pulling in external JSON search results into WordPress
- How to Integrate Live search in WordPress?
- How to create a custom filter in WordPress?
- search results in custom template search.php
- Search results are showing full page instead of sample
- $_GET value is losing it’s space
- Search: display all found matches inside post
- WordPress search.php pulling search results but also matching a page and pulling that information in
- Search Results Customization
- Search.php Modification Needed
- Search taxonomy terms, not posts
- Add Search Form to Dropdown menu
- Search multiple custom post types with tags
- Search doesn’t work with ‘relation’ => ‘OR’
- Add meta tag to search results
- Searchform for searching specific categories
- Selectbox and Searchform and Custom Search Page
- Hightlight search-terms with functions does remove or disable other filters?
- SQL: Search query to get attachments only of those parents which are published
- Change the text “search result for” on search result page
- Search redirects to index
- Want to creat a search for my wordpress theme [closed]
- Return 404 for /search/ queries – For Genesis
- Deprecating WordPress URL from Google, promoting custom domain [closed]
- Search with multiple selects that include tags
- Search results from a specific database table
- How do I create a search form that searches only within a custom post type?
- Two Querys in one Search – Category-Tag nightmare – HOW?
- How to make wordpress Dynamic Search-icon from Predesigned Static Html Search-icon?
- Code in the excerpt of the search page
- WordPress REST API response – not returning results from custom taxonomy, only from title
- Members location sortable based on UK Postcode
- I had removed my phone number from my website footer, but months later it still appears once I look it up on google, how to remove it?
- search posts by POST ID