Displaying the image in the taxonomy page
-
I can’t seem to make the image display in my taxonomy page. I followed the suggested code in the FAQ:
$image = get_term_meta( 7, 'image', true ); if ( ! empty( $image ) ) { echo '<img src="' . esc_url( $image ) . '" />'; }
But it’s not working. I even changed the ‘7’ above to ’26’, the actual tag ID of the term I’m testing out, and again not working.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying the image in the taxonomy page’ is closed to new replies.