• Resolved power506

    (@power506)


    I have two custom taxonomies:

    • Genre
    • Books
    • Both taxonomies are connected via the Relationship field. Books taxonomy is connected to Post, so I can tag a post with a Book. I display the Book term in frontend under the post with this code:

      
      if( ! is_singular( 'post' ) ){
      			return;
      		}
      
      		$the_id = get_the_ID();
      
      		the_terms( $the_id, 'book', '<div>Some content and styling</div>' );

      `

      How can I get to display the connected Genre taxonomy to it?

    • This topic was modified 4 years, 1 month ago by power506.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Display all connected Custom Terms’ is closed to new replies.