ある特定の条件下で記事を取得するときsticky_postの順番を無視する

条件に下記を追加する

[html]
"ignore_sticky_posts" => 1
[/html]

こんな風につかう

[html]
$args = array(
‘posts_per_page’ => 10,
‘ignore_sticky_posts’ => 1
);
query_posts($args);
[/html]

この記事を書いた人

mihoji

大阪でWEB屋さんをやっています。 WordPressを使ったサイト構築と、小規模な企業のマーケティング提案が得意です。 WordPressとIT系勉強会とビールがすき。