Guest Author – How can I use custom fields to create guest author link?
Remove the filters and the function used in the tutorial you linked and replace them with this code: add_filter( ‘get_the_author_user_url’, ‘guest_author_url’ ); add_filter( ‘the_author’, ‘guest_author_link’ ); add_filter( ‘get_the_author_display_name’, ‘guest_author_name’ ); function guest_author_url($url) { global $post; $guest_url = get_post_meta( $post->ID, ‘guest-url’, true ); if ( filter_var($guest_url, FILTER_VALIDATE_URL) ) { return $guest_url; } elseif ( get_post_meta( $post->ID, … Read more