Continue reading Indexing embedded PDFs for the parent post

Indexing embedded PDFs for the parent post

…WordPress. Thus, Relevanssi won’t know the PDF is embedded in the post and cannot index the PDF contents for the parent post. Most of these plugins use shortcodes to embed the PDF viewer on a page. To get Relevanssi to index the embedded PDF contents for the parent post, you…Relevanssi can automatically index PDF content for the parent post if the PDF (or other attachment) is attached to the parent post in WordPress. However, that’s not always the case. Sometimes the PDF is attached to the page using an embed, which doesn’t create a connection between the posts in……File block from WordPress, this snippet will index the PDF contents for the post where the file is embedded: add_filter( ‘relevanssi_block_to_render’, function( $block ) { if ( ‘core/file’ === $block[‘blockName’] ) { $file_id = $block[‘attrs’][‘id’]; $file_content = get_post_meta( $file_id, ‘_relevanssi_pdf_content’, true ); if ( $file_content ) { $block[‘innerContent’][0] = $file_content;…

Read more Indexing embedded PDFs for the parent post 5 Comments on Indexing embedded PDFs for the parent post
Continue reading Chamber Dashboard Business Directory

Chamber Dashboard Business Directory

The Chamber Dashboard Business Directory plugin has a business directory search that’s not compatible with Relevanssi. To disable Relevanssi in those searches, add this to your theme functions.php: This will make the business directory search work again. However, I would recommend just using Relevanssi to search the business directory as well – that’s possible, and…

Read more Chamber Dashboard Business Directory 0 Comment on Chamber Dashboard Business Directory
Continue reading Related Posts

Related Posts

…with the help of pre_relevanssi_related and post_relevanssi_related actions, which run before and after the Related posts search. Change the options in the pre action and return them to normal in the post action. Here’s an example of how to adjust the throttle to 50 for Related posts searches and modify…pre_option to change the value on the fly. add_filter( ‘pre_option_relevanssi_throttle_limit’, function() { return 50; } ); // Adjust the weight for tags to 20 to make tag matches more important. global $relevanssi_post_type_weights; $relevanssi_post_type_weights = get_option( ‘relevanssi_post_type_weights’ ); $new_weights = $relevanssi_post_type_weights; $new_weights[‘post_tagged_with_post_tag’] = 20; update_option( ‘relevanssi_post_type_weights’, $new_weights ); } add_action( ‘post_relevanssi_related’,……drain; the related posts may be irrelevant, and there may not be enough control over how the related posts are managed and kept up to date. Relevanssi Premium offers related posts and takes care of all of these issues: Performance: Relevanssi uses transient caches to store the related posts for…

Read more Related Posts 0 Comment on Related Posts
Continue reading Premium 2.2.4.2

Premium 2.2.4.2

Relevanssi Premium 2.2.4.2 is a small bug fix, again fixing unexpected little details for the related posts feature. There was some deprecated JS code in the plugin, which caused issues for users who didn’t have the migration code on their site. Here’s the full changelog: Fixes couple of JS issues with the metabox scripts. Improves…

Read more Premium 2.2.4.2 0 Comment on Premium 2.2.4.2
Continue reading Premium 2.2.4.1

Premium 2.2.4.1

…Any feedback on the feature is most welcome, I’m sure there are still some rough edges that can be improved with feedback from people who use the feature – what kind of settings you’d like to see and so on. You can get the new version from the Downloads page….…related posts anymore. Choosing the default thumbnail for related posts is more pleasant now. You can now disable auto-appended related posts for a post. You can disable a post so that it won’t appear as a related post. This should cover the problems with the Related Posts feature. Any feedback…

Read more Premium 2.2.4.1 0 Comment on Premium 2.2.4.1
Continue reading Indexing HTML comments

Indexing HTML comments

By default, Relevanssi does not index HTML comments inside your posts. Relevanssi removes all HTML tags before indexing, and HTML comments (<!– like this –>) are counted as HTML tags. If you have content inside comments that you want to be indexed, you need to modify the punctuation control – which is responsible for removing…

Read more Indexing HTML comments 0 Comment on Indexing HTML comments
Continue reading Toolset Views

Toolset Views

Relevanssi works fine with Toolset, thanks to a lot of compatibility code the makers of Toolset have included in it to make it work with Relevanssi. However, everything doesn’t work automatically without modifications. The key thing to notice with Toolset is that query variables and filters don’t work the way you’d expect. Because of the…

Read more Toolset Views 6 Comments on Toolset Views