How to Display Taxonomy Custom Meta Box Data in Archive Page?
I’m using CMB2 Plugin for creating Custom Meta Box in a Custom Taxonomy. I added fields into that taxonomy. But the problem is when I’m going to display that data in archive template, It seems blank. Here is my Code.
<?php $name = get_post_meta( get_the_ID(), 'game_name', true ); ?> <h1><?php echo esc_html( $name ); ?></h1>
Now Can you tell me how can I show meta data from a Taxonomy in an Archive page?