Continue reading Spam search blocking

Spam search blocking

…search queries in the server access log. Bing bot made about 16,000 of these. That’s a ton of wasted server power and a lot of unnecessary traffic. It’s a good idea to tell bots not to access your search results pages. To instruct bots to avoid your search results pages,……detrimental for search engine visibility. Blocking bad bots on server level There are security plugins that can block bad bots from accessing your site. These plugins have other issues, and in general it’s always better to block the bots on a lower level. That will both increase security and save…

Read more Spam search blocking 1 Comment on Spam search blocking
Continue reading Why is a post type excluded from search?

Why is a post type excluded from search?

…even though it has been excluded from the search. Relevanssi can index posts that are excluded from the search. If you have indexed an excluded post type, the column will still say the post type is excluded from the search, because the setting that is defined when the post type……“Respect exclude_from_search” option in the Relevanssi searching settings. As you can see, Relevanssi will suggest you need to uncheck this option if you choose to index an excluded post type. In many cases it’s good to stop and think before you index an excluded post type: there’s a good chance……there’s almost always a good reason why these post types are excluded from the search in the first place. However, sometimes there are situations where it would be useful to include these excluded posts in the search. That’s possible with Relevanssi: all you need to do is to uncheck the…

Read more Why is a post type excluded from search? 0 Comment on Why is a post type excluded from search?
Continue reading Adding direct links to outside pages to search results

Adding direct links to outside pages to search results

Hi, is there a way to add a link to another website when searching for certain keywords? We have a few affiliates and we want to include a direct link to their websites in the search results when certain terms are searched for. How would I go about this? A straight-forward approach for this is…

Read more Adding direct links to outside pages to search results 0 Comment on Adding direct links to outside pages to search results
Continue reading Relevanssi breaks autoembeds on result pages

Relevanssi breaks autoembeds on result pages

4.12.4 (free) onwards you can allow autoembed discovery with this line of code: add_action( ‘init’, function() { remove_action( ‘relevanssi_pre_the_content’, ‘relevanssi_kill_autoembed’ ); }, 99 ); This will allow the autoembeds to work on the_content filter hook again. However, this may lead to performance problems. Try it out and see what happens….

Read more Relevanssi breaks autoembeds on result pages 0 Comment on Relevanssi breaks autoembeds on result pages
Continue reading Premium 2.14 / Free 4.12

Premium 2.14 / Free 4.12

…attachment are read, Relevanssi will now automatically index the parent post if the setting is enabled. 2.14.4 / 4.12.4 New feature: New action hooks relevanssi_pre_the_content and relevanssi_post_the_content fire before and after Relevanssi applies the_content filter to the post excerpts. Some Relevanssi default behaviour has been moved to these hooks so…This new version improves Relevanssi excerpt generation, making it faster especially with larger posts. Lots of small bug fixes are also included, making Relevanssi more robust. 2.14.5 / 4.12.5 (Premium) New feature: New WP CLI command wp relevanssi remove_attachment_errors clears out all attachment reading errors. Changed behaviour: relevanssi_excerpt_custom_field_content now gets……it can be modified. Changed behaviour: The relevanssi_do_not_index gets the post object as a third parameter. Minor fix: Remove errors from relevanssi_strip_all_tags() getting a null parameter. (Premium) Minor fix: Updating posts still used relevanssi_update_doc_count(), which can sometimes be really slow. (Premium) Minor fix: Corrected misleading instructions about indexing AND synonyms….

Read more Premium 2.14 / Free 4.12 0 Comment on Premium 2.14 / Free 4.12
Continue reading Elementor

Elementor

…function. For example, if you’re trying to make attachment searching work and e_search_props is setting the post_type and post_status parameters to exclude attachments, you can do this: add_filter( ‘relevanssi_modify_wp_query’, function( $query ) { $query->set( ‘post_types’, ‘any’ ); $query->set( ‘post_status’, array( ‘publish’, ‘inherit’ ) ); return $query; } ); This will……allow all post types and the inherit post status used by attachments. Making Elementor queries use Relevanssi with Query IDs If you have an Elementor element that doesn’t use Relevanssi for the search results, you can force it do so by using Elementor Custom Query Filters. Give the query element…

Read more Elementor 4 Comments on Elementor