Skip to main contentSkip to footer

Small maintenance release of free Relevanssi, fixing something I was supposed to fix a while ago but forgot.

  • Plugin now works properly without multibyte string functions.
  • Fixed s2member support for s2member versions 110912 and above. (Thanks to Jason Caldwell.)
  • Added support for ‘tag’ query variable.

Get yours from the repository!

Your account

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

Search

Popular Resources

Category title in the search results page

If you’re using category restriction dropdown on your search form, here’s a bit of code that you can add to your search results template to show how many hits were found and what the category is. If no category was selected, this’ll just show how many hits were found. <?php…

Indexing custom post statuses
If you’re using custom post statuses, Relevanssi requires some tinkering. By default, Relevanssi only handles posts that are of status…
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…

Related Posts:

Currently there are no related posts available.

Comment Section:

1 Comment. Leave new

  • can’t save after “Quick edit” on any post when Relevanssi plugin is active. no problem with page quick edit.

    Reply

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