2017-07-31から1日間の記事一覧
<nav class="postNavi"> <span class="prev"> </span> <span class="next"> </span> </nav>
・日付別アーカイブページが表示されている場合(例:月、年、日、時間) is_data() ----- ・年別アーカイブが表示されている場合 is_year() ----- ・月別アーカイブページが表示されている場合 is_month() ----- ・日別のアーカイブが表示されている場合 is…
<div class="th_img_top"> <figure> <a href="<?php the_permalink(); ?>"></a> <a href="<?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/img/noimage_180x180.png" height="180" width="180"></a> …</figure></div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
loop-main.phpを読み込む 任意のテンプレート名-任意の名前.php get_template_part('loop', 'main');
single.php ------ ------ sidebar-archives.php <ul> 'monthly', // 月別を指定 'show_post_count' => true, // 投稿数を表示 ); wp_get_archives($args); ?> </ul>
single.php ----- <div> </div> ------ sidebar-categories.php <section> <h1>カテゴリー一覧</h1> <ul> '', // 見出しを削除 'show_count' => true, // 投稿ス ); wp_list_categories($args); ?> </ul> </section>