フォーラムへの返信

1件の返信を表示中 - 1 - 1件目 (全1件中)
  • フォーラム: 使い方全般
    返信が含まれるトピック: 最新の年の記事一覧
    トピック投稿者 naohiro7912

    (@naohiro7912)

    ありがとうございます。

    以下で動作できたかな思います。
    大変助かりました。

    <?php
    $Y_id = date(‘Y’,get_post_time());
    $query = ‘year=’ . $Y_id;
    query_posts($query) ;
    ?>
    <?php if(have_posts()):while(have_posts()):the_post(); ?>
    <?php the_title(); ?>
    <?php endwhile;endif; ?>
    <?php wp_reset_query(); ?>

1件の返信を表示中 - 1 - 1件目 (全1件中)