…’,’, array_keys( $results ) ) . “)” ); $child_posts = array_flip( $child_posts ); array_walk( $results, function( &$weight, $post_id ) use ( $child_posts ) { if ( ! isset( $child_posts[ $post_id ] ) ) { // Not a child post. $weight *= 10; } } ); return $results; } ); Weight……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……) { array_walk( $results, function( &$weight, $post_id ) { if ( ‘user’ === relevanssi_get_post_type( $post_id ) ) { $weight *= 2; } } ); return $results; } Weight from taxonomy terms Here’s how you can add extra weight to posts that have a particular taxonomy term. Just add this function…