using a litle snipplet to show meta of cpts:
if ( ! function_exists( 'generate_post_meta' ) ) :
/**
* Build the post meta
*
* @since 1.3.29
*/
add_action( 'generate_after_entry_title', 'generate_post_meta' );
function generate_post_meta()
{
if ( 'post' == get_post_type() || 'band' == get_post_type() ) : ?>
<div class="entry-meta">
<?php generate_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif;
}
endif;
this adds the date as expected… two questions:
1. what is the way to srtrip down the date so it only shows the year?
2. how can i also add the taxonomy of the cpt with this?
thanks in advance ๐