Support » Fixing WordPress » exclude 2 last posts

  • Resolved yortem

    (@yortem)


    i have this in my wordpress :
    <?php $catPost = get_posts(array('category'=>get_cat_ID( 'news' ),'numberposts'=>4)); ?>
    how can i exclude the 2 last posts from this list? the 2 is shown in another place and i want to the 3rd last post will be the first on this list.

    sry for my english.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘exclude 2 last posts’ is closed to new replies.