…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 );…