How to exclude one post format from search result?

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’ );

Make the title and […] clickable in result search

As for the_title(), you can wrap your title in anchor tag, use get_permalink() to get the path to the single post. Something like this will do the_title( ‘<h1 class=”entry-title”><a href=”‘ . esc_url( get_permalink() ) . ‘” rel=”bookmark”>’, ‘</a></h1>’ ); For any info on how to modify/style the_excerpt(), check out this post I have recently done. … Read more

“Modular/reusable” content and search results

There is a little underknown field in posts database called post_content_filtered. It isn’t used by core (as far as I remember) and sometimes plugins use it to store alternate representation of content (which is more or less what it is intended for). So in for your use case my idea would be to store content … Read more

Extend search function with link to searched word

you could include the search term as a parameter in the URL that links to the page http://www.example.com/page-here/?search-highlight=frogs and then hook into the the_content filter to replace all instances of the search-highlight term with a highlighted version

Search taxonomy terms, not posts

Use get_terms() to retrieve terms that match your search query like : $termsResult = get_terms( ‘CUSTOM_TAXONOMY_NAME’, ‘search=SEARCH_QUERY’ ); where, CUSTOM_TAXONOMY_NAME is your custom taxonomy and SEARCH_QUERY is the string which you are using to search for terms. Afterwards you can generate list like : if ( ! empty( $termsResult ) && ! is_wp_error( $termsResult ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)