Support » Fixing WordPress » help:exclude first post from posts for a tag

  • Resolved samtemehr

    (@samtemehr)


    hi
    I want show 4 posts from a tag and not show first post, please help

    <?php $my_custom_query= new WP_Query(array( 'post_type' => 'post',
    		'post_status' => 'publish',
    		'tag'   =>   'test',
    		'order' => 'DESC',
    		'posts_per_page' =>'4',
    		
    		));
    		if($my_custom_query->have_posts()) : while($my_custom_query->have_posts()) : $my_custom_query->the_post(); ?>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘help:exclude first post from posts for a tag’ is closed to new replies.