index.phpの記事一覧で先頭に固定を有効にしたい(通常投稿)
-
以下の様なコードでindex.phpにおいて通常投稿の記事一覧を出力しています。
<?php $args = array('post_type' => 'post', 'numberposts' => 6,'category_name' => 'diary'); $index_recent_post=get_posts($args); if ($index_recent_post) : foreach ($index_recent_post as $post) : setup_postdata ($post); ?>
先頭に固定の設定をしても先頭に固定されないのです。
どうすればいいでしょうか?
1件の返信を表示中 - 1 - 1件目 (全1件中)
1件の返信を表示中 - 1 - 1件目 (全1件中)
- トピック「index.phpの記事一覧で先頭に固定を有効にしたい(通常投稿)」には新たに返信することはできません。