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