Пример #1
0
        post_class();
        ?>
>
        <div class="article">

        <h1 class="entry-title"><?php 
        echo get_the_title();
        ?>
</h1>
        <p class="post-meta">
          <?php 
        get_template_part('datetime');
        ?>

          <?php 
        if (is_category_visible()) {
            ?>
          <span class="category"><i class="fa fa-folder fa-fw"></i><?php 
            the_category(', ');
            ?>
</span>
          <?php 
        }
        ?>

          <?php 
        get_template_part('edit-link');
        ?>

          <?php 
        wlw_edit_post_link('WLWで編集', '<span class="wlw-edit"><i class="fa fa-pencil-square-o fa-fw"></i>', '</span>');
    <p class="post-meta">
      <?php 
if (is_create_date_visible()) {
    //投稿日を表示する場合
    ?>
      <span class="post-date"><span class="fa fa-clock-o fa-fw"></span><span class="published"><?php 
    the_time(get_theme_text_date_format());
    ?>
</span></span>
      <?php 
}
//is_create_date_visible
?>

      <?php 
if (is_category_visible() && get_the_category()) {
    //投稿ページの場合
    ?>
      <span class="category"><span class="fa fa-folder fa-fw"></span><?php 
    the_category(', ');
    ?>
</span>
      <?php 
}
//is_category_visible
?>

      <?php 
//コメント数を表示するか
if (is_comments_visible() && is_list_comment_count_visible()) {
    $comment_count_anchor = get_comments_number() > 0 ? '#comments' : '#reply-title';