Continue reading ACF: Filtering custom fields by type

ACF: Filtering custom fields by type

On sites where ACF fields are used a lot, with Flexible Content and Repeater fields, it may be difficult to make Relevanssi only index the relevant ACF fields. One way to deal with problem is to set Relevanssi to index “visible” custom fields and then restrict the indexed fields by field type. Add this function…

Read more ACF: Filtering custom fields by type 0 Comment on ACF: Filtering custom fields by type
Continue reading ACF: Field names appearing in excerpts

ACF: Field names appearing in excerpts

…think it has). Since that too is a visible field, Relevanssi indexes it and uses it for excerpts. Thus the layout names appear in excerpts. The solution to this problem is to remove the root field, flexible_content, from the Relevanssi index and excerpts. That is a straightforward thing to do…With Advanced Custom Fields, sometimes Relevanssi picks up custom field names to include in the excerpts. This problem happens when you set Relevanssi to index all visible custom fields and have Flexible Content fields. Let’s assume there’s a Flexible Content field with the name flexible_content. It has a layout named……with a filter function: add_filter( ‘relevanssi_index_custom_fields’, ‘rlv_remove_unwanted’ ); function rlv_remove_unwanted( $fields ) { $unwanted_fields[] = ‘flexible_content’; return array_diff( $fields, $unwanted_fields ); } Add this function to your site and rebuild the index. Now the root field is no longer indexed or used in excerpts. Another approach is to stop using…

Read more ACF: Field names appearing in excerpts 4 Comments on ACF: Field names appearing in excerpts
Continue reading Premium 2.11 / Free 4.9

Premium 2.11 / Free 4.9

It’s been a while since the previous version, and the list of features and bug fixes in this version has grown long. This version includes several interesting new features, both for free and Premium. Free version users get access to better debugging tools. There’s now a Debugging tab in the Relevanssi settings, which lets you…

Read more Premium 2.11 / Free 4.9 0 Comment on Premium 2.11 / Free 4.9
Continue reading Premium 2.10 / Free 4.8

Premium 2.10 / Free 4.8

…include numbers. Relevanssi init is now moved from priority 10 to priority 1 on the init hook to avoid problems with missing TablePress compatibility. Major fixes Relevanssi didn’t index new comments when they were added; when a post was indexed or the whole index rebuilt, comment content was included. I…After the Summer break, Relevanssi is back with new versions, both to Premium and free. These are mostly small improvements, but when testing the new version, I discovered a bug in the comment indexing that has made Relevanssi not index comments when they are added. I’m not sure why this……now supports date parameters. New feature: Both relevanssi_fuzzy_query and relevanssi_term_where now get the current search term as a parameter. New feature: New filter hook relevanssi_tabs can be used to adjust the tabs in Relevanssi settings page to add, modify or delete the tabs. (Premium) Major fix: The post_relevanssi_related action hook…

Read more Premium 2.10 / Free 4.8 0 Comment on Premium 2.10 / Free 4.8
Continue reading Relevanssi 4.0.3

Relevanssi 4.0.3

Version 4.0.3 fixes problems in Relevanssi 4.0.2. The biggest issue is the indexing: version 4.0.2 always leaves some posts unindexed and requires the user to continue indexing. This version fixes that issue and other small issues. Relevanssi didn’t index all posts with one go. It does now. © and ® symbols caused problems in indexing;…

Read more Relevanssi 4.0.3 0 Comment on Relevanssi 4.0.3
Continue reading Relevanssi Premium 2.0.3

Relevanssi Premium 2.0.3

Version 2.0.3 is mostly maintenance, fixing bugs in previous versions. There have been some issues with the PDF indexing, some wrinkles we’re still ironing out. As a new feature, you can now have Relevanssi automatically read the contents of new PDF files – that wasn’t possible before. This setting is disabled by default, as it…

Read more Relevanssi Premium 2.0.3 0 Comment on Relevanssi Premium 2.0.3
Continue reading Premium 1.16.1 / Free 3.6.1

Premium 1.16.1 / Free 3.6.1

I was told today that there is a security vulnerability in Relevanssi. It is possible to set the post type and taxonomy weights to values that are not numeric, and those values will be inserted into SQL queries, making SQL injection possible. However, it requires either admin access to the WordPress dashboard or direct access…

Read more Premium 1.16.1 / Free 3.6.1 0 Comment on Premium 1.16.1 / Free 3.6.1
Continue reading Premium 1.10

Premium 1.10

The beta testers had no complaints, so here goes: Relevanssi Premium 1.10 and a ton of updates. Made some changes to how user profiles and taxonomy terms are handled. As a result, there should be less warning notices. For user profiles, you can now find the user id in $post->user_id……can also use the older meta_key and meta_value query variables, including all the comparisons. I have not tested all possible meta_query constructions, so bug reports of things that don’t work as expected are welcome. New index on the database makes some database operations faster. New filter: relevanssi_user_add_data lets you add…

Read more Premium 1.10 0 Comment on Premium 1.10