Skip to main contentSkip to footer

Relevanssi Premium 1.14.8 includes one major bug fix, few smaller improvements and a new feature.

  • An improved version of the sorting function will not throw notices when Intuitive Custom Post Order plugin is used.
  • New filter: relevanssi_missing_sort_key can be used to adjust the result sorting when using keys that are not present in all posts (eg. menu_order).
  • Importing options now works, it was broken in 1.14.6.
  • New feature: keyword-based exclusion is the opposite of the pinning feature. You can now list keywords on post edit screen, and if the search query matches those keywords, the post will not appear in results.
  • Czech translation and stopwords, thanks to Michael Kucera.

Fetch your copy with the automatic upgrade or download here.

Your account

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

Search

Popular Resources

WPML: Indexing synced posts

…$post->post_type ); foreach ( $translations as $lang => $translation ) { $translation_id = absint( $translation->element_id ); if ( ! empty( $translation_id ) && $translation_id !== $post_ID ) { relevanssi_insert_edit( $translation_id ); } } } Thanks to Garrett McGilvray / Éditions CEB. There’s a similar solution for Polylang Pro synced posts….…); function index_post_in_all_languages( $post_ID, $post ) { if ( ! function_exists( ‘relevanssi_insert_edit’ ) ) { return; } $trid = apply_filters( ‘wpml_element_trid’, null, $post_ID, “post_{$post->post_type}” ); if ( ! $trid ) { return; } $translations = apply_filters( ‘wpml_get_element_translations’, null, $trid, $post->post_type ); foreach ( $translations as $lang => $translation ) {…When a post is updated, WPML updates all the translations of the post, but Relevanssi only indexes the post that was updated, not the corresponding posts in other languages. This method hooks into save_post after WPML to tell Relevanssi also to index the matching translations. add_action( ‘save_post’, ‘index_post_in_all_languages’, 110, 2…

Flatsome
Posts and pages on the product search results The Flatsome theme, when combined with WooCommerce, has a product search results…
Indexing only attributes from shortcodes

…do I go about this? – Duke at Remove shortcode but keep content in X parameter You can’t do this using the Relevanssi shortcode removal because that’s a binary operation: the whole shortcode is kept or removed, and there’s no way to keep only part of the shortcode. However, you…I need to add some custom shortcodes to the list of the “removed” ones (so they don’t show in plain text in the results). However, some of them are built like [shortcode_name text=”Need to keep this in results”] and I would like the content in the text parameter to stay in the results. How……the “text” attribute from the shortcode * * @param string $content Post content * * @return string Post content with the shortcode replaced with just the “text” attribute content. */ function rlv_shortcode_attribute( $content ) { return preg_replace( ‘/\ /im’, ‘\1’, $content ); } Since this particular case was about a…

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