Continue reading Debugging Relevanssi searching issues

Debugging Relevanssi searching issues

Relevanssi has plenty of useful filter hooks you can use to debug problems. Here are some examples of how you can use the Relevanssi filter hooks to debug issues. Add the functions one at a time to your site and run a search to see results. First, try the Relevanssi……); exit(); } If you add this and run a search, you’ll see the query parameters Relevanssi uses. Is there something there that doesn’t look right? For example, is there a taxonomy parameter that shouldn’t be there? Look at the MySQL query Use Query Monitor, or add this: add_filter( ‘relevanssi_query_filter’,……admin search. Before checking the filters, try the Relevanssi admin search (Dashboard > Admin search). Does that find the correct results? If it does, then the problem is likely with your theme. Use Query Monitor Query Monitor is a superb tool for debugging WordPress behaviour. It’s very useful for debugging…

Read more Debugging Relevanssi searching issues 11 Comments on Debugging Relevanssi searching issues
Continue reading Premium 2.1.2 / Free 4.0.6

Premium 2.1.2 / Free 4.0.6

The previous versions of Relevanssi had couple of unpleasant bugs. Those bugs went pass the testing, but one of them is now a test case in the Relevanssi test suite (the rest aren’t, because right now, the test suit only tests things that are not related to other plugins). MemberPress……post control was backwards. These things happen when doing compatibility with Premium plugins you don’t have access to and thus can’t test. WPML language restriction setting should now work as expected. Fusion Builder shortcodes are automatically removed from excerpts. Indexing failed when a same word appeared in two different taxonomies….…This is now a test case, so this bug should never happen again. (Premium only.) Internal link management had a bit of a bug in the indexing. User searches page reset buttons fixed. (Free only.) Missing tag and category weight settings are returned. Sorry about this: there’s certainly no purpose…

Read more Premium 2.1.2 / Free 4.0.6 0 Comment on Premium 2.1.2 / Free 4.0.6
Continue reading Premium 2.1.1 / Free 4.0.5

Premium 2.1.1 / Free 4.0.5

…Relevanssi Premium release is now also automatically tested. This should make sure any modifications to the code don’t break any old features. The test suite is still something of a work-in-progress. It’s available on Github if you want to take a look at it. More tests will be added as……we come up with things to test, and whenever there’s a problem, we’ll add a test for it to make sure it won’t happen again. Another good reason to bump up the version number a bit is the addition of new attachment types. Relevanssi can now handle the most common……document types. Update 27.3.2018: Well, looks like automated testing isn’t a perfect solution. Some overzealous security measures made the Network options page break a bit. Version 2.1.1 fixes that. (Premium only.) Attachment indexing has been extended to many more document types: now it should be able to handle most document…

Read more Premium 2.1.1 / Free 4.0.5 0 Comment on Premium 2.1.1 / Free 4.0.5
Continue reading ACF: Indexing relationship content

ACF: Indexing relationship content

…name. This function covers fetching post data, user data and taxonomy term data. For taxonomy terms, there’s the more complete solution that figures out the taxonomy from the field settings, but if the taxonomy is never going to change, you can skip all that and just set the taxonomy in……user display name and taxonomy term name, but you can get any post data based on the post ID, use any user data provided by get_userdata() and any term content provided by get_term(). Sometimes you have a flexible content field, which makes it impossible to use get_post_meta(), because you don’t……the post data by the relationship field. $relationships = get_post_meta( $post->ID, ‘relationship_field’, true ); if ( ! is_array( $relationships ) ) { $relationships = array( $relationships ); } foreach ( $relationships as $related_post ) { $content .= ‘ ‘ . get_the_title( $related_post ); } // Fetching the user data. $users…

Read more ACF: Indexing relationship content 2 Comments on ACF: Indexing relationship content