Skip to main contentSkip to footer

Version 3.5.4 is a significant maintenance update. It includes the following fixes or updates, and is a recommended update:

  • Relevanssi had a bug that lead to inflated relevancy scores for posts.
  • Relevanssi can now index the human-readable labels of ACF “select” fields. (Thanks to Raphaël Droz.)
  • New filter: relevanssi_30days can be used to adjust the 30 day logs to a different number of days.
  • Adding stopwords that contain apostrophes didn’t work.
  • Ensured PHP7 and WP 4.6 compatibility.
  • Fixed a small glitch that could happen if a highlighted term is next to a starting square bracket.

You can get the latest version through auto-update or from the repository.

Your account

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

Search

Popular Resources

Envira Gallery

…’ ‘ . $child->post_excerpt; // Adds the image caption. $tags = get_the_terms( $child->ID, ‘envira-tag‘ ); if ( ! is_array( $tags ) ) { $tags = array(); } foreach ( $tags as $tag ) { $content .= ‘ ‘ . $tag->name; // Adds the tag name. } $cats = get_the_terms( $child->ID,…Envira Gallery is a gallery plugin for WordPress. Since it uses a custom post type for the galleries, it works fine with Relevanssi. However, the gallery post type doesn’t have any information about the actual images: no titles, tags or other details like that. Since the images are uploaded in…

Increasing weight for HTML tags

…’relevanssi_post_content’, ‘rlv_html_tag_boost’ ); function rlv_html_tag_boost( $content ) { $weightings = array( ‘h1’ => 5, ‘h2’ => 4, ‘h3’ => 2, ‘strong’ => 1, ); foreach ( $weightings as $tag => $weight ) { if ( preg_match_all( “#<$tag.*?>(.*?)</$tag>#”, $content, $elements ) ) { foreach ( $elements[1] as $el_content ) { while…Relevanssi ignores HTML tags when indexing posts. If you want to give more weight to words that appear in specific HTML tags (like headings), here is one way to do that. You can add this filter function on your site to the theme functions.php or in a code snippet: add_filter(……( < $weight– ) { $content .= ” $el_content”; } } } } return $content; } This code goes through the post content during the indexing with the relevanssi_post_content filter hook. When it finds content that appears inside the HTML tags specified in the $weightings array, it will add the…

MemberPress Downloads add-on
The Downloads add-on for MemberPress adds downloadable files to MemberPress. These files are stored outside the Media Library, so by…

Related Posts:

Currently there are no related posts available.

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