ある特定の条件下で記事を取得するときsticky_postを表示させない

            <?php 
            $sticky = get_option( 'sticky_posts' );
            $args = array(
                'post_type'=> 'post',
                'category_name' => 'news',
                'order'=> 'DESC',
                'posts_per_page' => 3,
                'ignore_sticky_posts' => 1,
                'post__not_in' => $sticky
            );
            query_posts( $args );
            ?>

この記事を書いた人

mihoji

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