Skip to main contentSkip to footer

Premium 1.16.2.1 / Free 3.6.2.1

These are small bug fix releases that squish an unpleasant little bug in the versions 1.16.2 and 3.6.2. The bug was in the new post sorting algorithm and caused notices about undefined indexes, and probably messed up the sorting in some cases (not all, though).

Use the auto update, or download Premium from the download page.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Search is ignoring accents
In general, searches ignore accents, which is generally a good idea: for example in French, the difference between e and…
Custom weighing with relevanssi_match and relevanssi_results

…some tips for improving the performance at the end of the page. How to use these functions? If you don’t know how to use these functions, please read Adding custom functions to your site. Table of contents Date-based weight Custom field -based weight Adding extra weight to users Weight from……posts: add_filter( ‘relevanssi_results’, ‘rlv_dynamic_time_weights’ ); function rlv_dynamic_time_weights( $results ) { array_walk( $results, function( &$weight, $post_id ) { $now = date_create( ‘now’ ); $post_date = date_create( get_the_time( ‘Y-m-d’, $post_id ) ); $diff_days = $now->diff( $post_date, true )->format( ‘%a’ ); if ( $diff_days < 1 ) { $diff_days = 1; } $multiplier……= 500 / $diff_days; $weight = $weight * $multiplier; } ); return $results; } Custom field -based weight This function will double the weight of posts with the custom field “featured” set to 1. add_filter( ‘relevanssi_match’, ‘custom_field_weights’ ); function custom_field_weights( $match ) { $featured = get_post_meta( $match->doc, ‘featured’, true );…

Related Posts:

Currently there are no related posts available.

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed