結構使うのでメモ
<ul> <?php $args = array( 'type' => 'monthly', 'limit' => '10', 'format' => 'html', 'before' => '<li>', 'after' => '</li>', 'show_post_count' => false, 'echo' => 1, 'order' => 'DESC' ); wp_get_archives( $args . '&post_type=custompost' ); ?> </ul>
- 関連記事
-
-
WordPress 現在記事の編集ページへのリンクを取る get_admin_url 2015/02/16
-
WordPress 投稿から任意の時間が経過した記事一覧を表示 2015/02/10
-
カスタムポストタイプに月別アーカイブを表示する wp_get_archives 2015/01/26
-
WordPressで日報システムのようなものを作ったので一部をメモ 2015/01/25
-
WordPress 固定ページに新着記事一覧を表示 2015/01/12
-