Free 2.9.14
Small fix: Relevanssi will now index pending and future posts. These posts are only shown in the admin search.
Small fix: Relevanssi will now index pending and future posts. These posts are only shown in the admin search.
Relevanssi Premium 1.7.7 fixes a major bug and adds a couple of neat new features. It is a recommended update and a mandatory update, if you use the “hide this post from index” checkbox feature. Fixed a major bug that can make indexing fail when the user has manually chosen to hide posts from the…
Small maintenance updates to both free and Premium, mostly with the same changes. Here’s what’s new in both: Fixed a mistake in the FAQ: correct post date parameter is ‘post_date’, not ‘date’. New filter relevanssi_results added. This filter will process an array with (post->ID => document weight) pairs. Private and draft posts were deleted from…
When you have problems with Relevanssi, these are the first steps to take: Make sure you have the latest version of Relevanssi. If not, upgrade. Try deactivating the plugin and reactivating it. Are you using Yoast Local SEO? Read this. Try deleting the plugin and reinstalling it from scratch. If…
For some reason setting the post_type query variable to page doesn’t have the desired effect. Other post types (post, custom post types) work, but page doesn’t do anything. This is not a Relevanssi bug, but a WordPress feature (see this trac ticket). If the user inputs a bad value to……the post_type query variable, WordPress changes it to any. For some reason that happens also when the post_type is set to page, even though that should be a valid value. There’s nothing Relevanssi can do about this. However, there’s a fix. Relevanssi introduces a new query variable post_types, which happily…
I was told that Relevanssi Premium doesn’t index drafts, even though it should (since 1.6). Looks like the feature has gone missing in some update. Sorry about that. This version reintroduces it. Drafts are automatically indexed and shown in admin searches. I’m also adding the first test version of the declension featured mentioned before. This…
…you want to. Remember that whenever you link to search results like that, it’s a good idea to tell Google and other bots to avoid indexing the results. The link above has the “rel=’nofollow’” instruction, but you can also use robots.txt to prevent bots from spidering your search results pages….In order to filter search results by category, use the following code: $url = get_bloginfo(‘url’); $url = esc_attr(add_query_arg(array(‘cat’ => ’10’, ‘s’ => get_search_query()), $url)); echo “Filter by category 10”; Put this in your search results template. What the code does is to create a link that takes the current search……query and adds the category variable to it. This link filters the results by category 10, change the number to correct category ID to make it filter by the category you want to. Remember that whenever you link to search results like that, it’s a good idea to tell Google…
John Blackbourn wrote a cool related searches feature for Relevanssi Premium. It’s included from version 1.7.4. In order to use the related searches, you must have search logging enabled and a good log of past searches. Then add the following code to your search results template in a suitable place: The first parameter is the…
I got a bug notice, which I decided to fix right away. I also added couple of small features while I was at it. Fixed a bug related that caused AND queries containing short search terms to fall back to OR searches. The relevanssi_match filter now gets the IDF as an additional parameter to make…
Lots of bug fixes and couple of neat new features in this version. Cache truncation was never actually scheduled. Index wasn’t updated properly when post status was switched from public to private. Made the relevanssi_hide_post custom field invisible. Added an option to hide the Relevanssi post controls metabox on edit pages. Fixed a bug that…