…global $post; $characters = rlv_process_terms( $post, ‘characters’, ‘restrict_to_taxonomy’ ); $authors = rlv_process_terms( $post, ‘authors’, ‘restrict_to_taxonomy’ ); $locations = rlv_process_terms( $post, ‘locations’, ‘restrict_to_taxonomy’ ); $series = rlv_process_terms( $post, ‘series’, ‘restrict_to_taxonomy’ ); $tags = rlv_process_terms( $post, ‘post_tag’, ‘just_add_phrases’ ); $new_words = array_merge( $characters, $authors, $locations, $series, $tags ); return $words . ‘……look at that next: function rlv_process_terms( $post, $taxonomy, $process = ‘restrict_to_taxonomy’ ) { $terms = get_the_terms( $post, $taxonomy ); $term_names = array(); $callback = ‘rlv_phrasify_taxonomify’; if ( ‘just_add_phrases’ === $taxonomify ) { $callback = ‘rlv_phrasify’; } if ( $terms ) { $term_names = array_map( $callback, array_map( function( $term ) {……Wimsey and so on. Phrase search for multi-word taxonomy terms was required. Then the taxonomy restriction wouldn’t be necessarily required – it doesn’t matter where in the post “Lord Peter Wimsey” is mentioned, it’s definitely related. The relevanssi_related_words hook Relevanssi Premium gives us enough filter hooks to make building this…