Search multiple custom post types with tags

You can use filters to create custom search querys add_filter(‘posts_join’, ‘forum_search_join’) add_filter(‘posts_where’, ‘forum_search_where’); http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_where http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join

Returning the entire line of a custom search result filter

Well you can try to do while(have_posts()) – a standard query loop in your search page. Than you can try to highlight (in example its marking a search occurance of the search string), but you can modify example and show only your search word occurance. function sublinhamos($text, $words) { $wordsArray = array(); $markedWords = array(); … Read more

I want to edit the search function

Basically everything query-related is in wp-includes/query.php. Search for the parse_search function in that file and the posts_search and posts_search_orderby filters.

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