Continue reading Removing Relevanssi from the quick edit

Removing Relevanssi from the quick edit

Relevanssi Premium adds Relevanssi tools to post edit pages and in the quick edit box. If you want to disable these, there’s an option to hide both. But what if you want to keep the Relevanssi tools on the edit pages, but want to remove them from the quick edit? The option removes both, but…

Read more Removing Relevanssi from the quick edit 0 Comment on Removing Relevanssi from the quick edit
Continue reading Proximity sorting

Proximity sorting

Relevanssi Premium 2.16 added proximity sorting to search results. That means you can sort the search results by geographic location. Instead of having the most relevant matches first, you can have the nearest results first. There are many ways to use geolocation in WordPress. The way Relevanssi does this is flexible but requires some work.…

Read more Proximity sorting 0 Comment on Proximity sorting
Continue reading Spam search blocking

Spam search blocking

Spam searches are a common feature on WordPress sites. Spam bots make lots of useless queries. They hope sites display the search queries somewhere, providing links to spam sites. This is unpleasant, clogs up the search logs and wastes resources. Relevanssi Premium introduced a new spam blocking feature in version 2.15.0. You can use this…

Read more Spam search blocking 1 Comment on Spam search blocking
Continue reading Multi-part excerpts

Multi-part excerpts

…2 ); function rlv_excerpt_parts( $excerpt_text, $excerpt ) { return ‘<span class=”excerpt_part”><span class=”excerpt_source”>’ . $excerpt[‘source‘] . ‘</span>’ . $excerpt[‘text’] . ‘</span>’; } Then add some styles to make it look nicer: .excerpt_part .excerpt_source { display: inline-block; text-transform: uppercase; font-size: 50%; color: #555; margin-right: 20px; padding: 5px; border: thin solid #999; }……to make the excerpt parts stand out from each other, you need to CSS styles. This would be a fairly basic way to do it: span.excerpt_part { display: block; border: thin solid #aaa; margin: 10px; padding: 20px; } If your excerpts include other sources (manually entered post excerpts, comments), Relevanssi……knows that and you can display that information on the search results page: Achieving this is a two-part process. First, add this to your site to modify the excerpt part with the relevanssi_excerpt_part filter to show the source data: add_filter( ‘relevanssi_excerpt_part’, ‘rlv_excerpt_parts’, 10, 2 ); function rlv_excerpt_parts( $excerpt_text, $excerpt )…

Read more Multi-part excerpts 0 Comment on Multi-part excerpts
Continue reading Can Relevanssi access content outside WordPress?

Can Relevanssi access content outside WordPress?

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…

Read more Can Relevanssi access content outside WordPress? 2 Comments on Can Relevanssi access content outside WordPress?
Continue reading Wildcard matching

Wildcard matching

Relevanssi Premium 2.10.2 introduces a new way to search: wildcard matching. Once the wildcard matching is enabled (it is disabled by default), it introduces two new operators: * and ?. Using the wildcard operators The * operator replaces zero or more characters, so searching for w*ess would match “wilderness”, “witness”, “WordPress” and also “wess”. The…

Read more Wildcard matching 2 Comments on Wildcard matching
Continue reading Target specific part of the post

Target specific part of the post

Relevanssi Premium 2.4.4 introduced a new feature where you can target specific parts of the post straight from the search terms. The format for this is {target:search_term} Target can be one of the following: These are all compared against Relevanssi index, so you can use any of these targets only if Relevanssi indexes that particular…

Read more Target specific part of the post 3 Comments on Target specific part of the post