2021 Oct 20 Wed
<?php wp_get_archives( 'post_type=voice&type=monthly&show_post_count=1' ); ?>
wp_get_archivesを以下の記述に変更
<?php $args= array( 'type' => 'monthly', 'echo' => false, 'post_type' => 'voice', 'show_post_count' => 1 ); $monthly_list = wp_get_archives($args); $monthly_list = str_replace('/voice/', '/voice/date/', $monthly_list); echo $monthly_list; ?>
2025.07.07
2025.07.04
2025.06.24
2024.10.02
2024.08.29
0