Skip to main contentSkip to footer

Here’s what Relevanssi Premium 1.4.5 has:

  • New filter: relevanssi_match allows you to weight search results.
  • Similar to cats vs cat, you can now use post_types to restrict the search to multiple post types.
  • Multisite search supports post type restriction.

The relevanssi_match filter is a really cool new feature that’ll give you lots of extra power to adjust the search results. It’s so cool it has its’ own knowledge base entry: Custom weighing with relevanssi_match hook.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

OceanWP

…$post->blog_id ); } ?> <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <div class=”search-entry-inner clr”> <?php // Featured Image. get_template_part( ‘partials/search/thumbnail’ ); ?> <div class=”search-entry-content clr”> <?php // Title. get_template_part( ‘partials/search/header’ ); // Content. get_template_part( ‘partials/search/content’ ); // Read more button. get_template_part( ‘partials/search/readmore’ ); ?> </div><!– .search-entry-content –> </div><!– .search-entry-inner –>……file partials/search/content.php with this content: <?php /** * Search result page entry content * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( ‘ABSPATH’ ) ) { exit; } global $post; // Excerpt length. $length = apply_filters( ‘ocean_search_results_excerpt_length’, ’30’ ); ?> <div class=”search-entry-summary clr”<?php…OceanWP is a popular WordPress theme. It works fine with Relevanssi, but how it handles excerpts on the search results pages is not fully compatible with Relevanssi. Relevanssi expects the theme to use the_excerpt() to print out the excerpts. OceanWP does that, but only for posts that have hand-made excerpts….

Filtering results by category
In order to filter search results by category, use the following code: $url = get_bloginfo('url'); $url = esc_attr(add_query_arg(array('cat' => '10',…

Related Posts:

Comment Section:

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed