WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] exclude 2 last posts (4 posts)

  1. yortem
    Member
    Posted 9 months ago #

    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.

  2. vestimir
    Member
    Posted 9 months ago #

  3. yortem
    Member
    Posted 9 months ago #

    thanks. its worked :)

  4. vestimir
    Member
    Posted 9 months ago #

    Glad to see. Can you update the status of the thread as solved.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.