//Filter the Taxonomy info on a CPT add_filter( 'genesis_post_info','genesiskit_post_info_filter', 11 ); function genesiskit_genesis_post_info_filter( $post_info ) { if ( 'portfolio' == get_post_type() ) { //swap in CPT name $post_info='<span class="author">[post_author_posts_link]</span> <span class="categories">[post_terms taxonomy="portfolio-type" before=""]</span> <span class="date">[post_modified_date]</span>';//swap in taxonomy and label name return $post_info; } elseif ( 'post' == get_post_type() ) { return $post_info; } } //* Add author gravatar before post meta on custom post types. add_action( 'genesis_entry_header', 'genesiskit_entry_gravatar' , 11 ); function genesiskit_entry_gravatar() { if ( ! is_singular('portfolio') ) { return; } echo get_avatar( get_the_author_meta( 'email' ), 96 ); }
for WooCommerce Products
//Filter the Taxonomy info on a CPT add_filter( 'genesis_post_info','dy_post_info_filter', 11 ); function dy_genesis_post_info_filter( $post_info ) { if ( 'product' == get_post_type() ) { //swap in CPT name $post_info='<span class="categories">'; //swap in taxonomy and label name return $post_info; } elseif ( 'post' == get_post_type() ) { return $post_info; } }