Skip to main contentSkip to footer

Both free and Premium got updates today. The most important thing in these updates is the improved security: the MySQL queries should be safe now, with all inputs thoroughly escaped.

  • Fixed a bug where excluding posts would cause the search to fail.
  • WPML searches showed each result twice. That’s fixed.
  • Increased plugin safety against hackers.
  • There was a bug in relevanssi_comment_content_to_index filter.
  • Some people had problems with the log entry timestamps. Fixed that.
  • New filter: relevanssi_prevent_default_request gives you more control over where Relevanssi prevents the default query from running.
  • New filter: relevanssi_private_cap lets you set the correct capability for finding private posts in custom post types.
  • The option to exclude categories and tags from search only worked for categories, not tags. Tags have been separated to a different option.

Your account

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

Search

Popular Resources

Excluding protected posts

A site I’m working with has a handful of “protected” posts (password required to view). For various reasons, we don’t want to show these in search results. While there is no excerpt shown, I’d prefer for people to not even know they exist. Relevanssi sees protected posts as public posts……2 ); function rlv_search_exclude_protected( $allow, $post_id ) { $post = get_post( $post_id ); if ( ! empty( $post->post_password ) ) { $allow = false; if ( is_user_logged_in() ) { $allow = true; } } return $allow; } Now protected posts are not shown to searchers who are not logged in….

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