スニペット/WordPress post_type
1 | if (get_post_type() == 'dmm_video' |
1 | if (has_term('dmm-digital', 'archive') |
1 | if (is_post_type_archive('style_cut')) |
1 2 3 4 5 6 7 | <?php $p_url = get_post_type_archive_link($post->post_type); $p_label = esc_html(get_post_type_object(get_post_type())->label); ?> <ul> <li><?php echo get_the_term_list($post->ID, 'genre', '', ' '); ?><?php echo $p_label; ?></a></li> </ul> |
コメントを投稿する