Skip to main contentSkip to footer

Quick bug fix release. Not a mandatory update, unless you use More Types plugin or see error notices.

  • Fixed two small mistakes that caused error notices.
  • Custom post types, particularly those created by More Types plugin, were causing problems.

 

Your account

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

Search

Popular Resources

Controlling attachment types in index

Relevanssi lets you index attachments. But perhaps you only want to index a particular type of attachment? Relevanssi settings don’t have any control over that, it’s either all attachments or nothing. It is possible to choose which kinds of attachments are indexed. It is done with the relevanssi_indexing_restriction filter hook,…

Can Relevanssi access content outside WordPress?

…and so on. Those functions cannot access anything outside the WordPress installation, whether it’s another WordPress installation, HTML files or external databases. If you still need this… If you really must have Relevanssi access outside data, there’s one way to achieve that: import the data inside your WordPress installation. Create…Short answer: no. Relevanssi can only access WordPress content. For a longer answer, read on. Only within single WP installation Relevanssi only operates within one WordPress installation. Relevanssi Premium supports multisite searching, where the search can return posts from more than one subsite at once, but even in those cases……the WordPress sites must be part of the same installation. It’s not possible to search content that exists in another WordPress installation, not even if it’s on the same server. No outside content Relevanssi is heavily dependent on WordPress methods. When getting posts, Relevanssi uses the get_post() function in WordPress…

Adding extra boost for exact title matches

…can use this code to give a boost for exact matches in titles and post content: add_filter( ‘relevanssi_results’, ‘rlv_exact_boost’ ); function rlv_exact_boost( $results ) { $query = strtolower( get_search_query() ); foreach ( $results as $post_id => $weight ) { $post = relevanssi_get_post( $post_id ); // Boost cases where query appears……in the title if ( stristr( $post->post_title, $query ) !== false ) { $results[ $post_id ] = $weight * 100; } // Boost cases where query is exactly the title if ( strtolower( $post->post_title ) === $query ) { $results[ $post_id ] = $weight * 100; } // Boost query……return $results; } Relevanssi has the basic title and content exact matching built-in. Add this code to your site to boost posts with titles and content that match the search query. If you want to be 100% sure, you can write a relevanssi_hits_filter function that moves the exact matches on…

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