Display all connected Custom Terms
-
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?
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.