WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] [ic_add_posts ids='3, 2, 1'] seems to ignore listed order (2 posts)

  1. wejdoane
    Member
    Posted 1 year ago #

    Inserting

    [ic_add_posts ids='3, 2, 1']

    on a page seems to ignore the listed ID order in favor of... insert order?

    That is, the IDed posts appear on the page in the order 1, 2, 3.

    http://wordpress.org/extend/plugins/posts-in-page/

  2. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hi wejdoane,

    Thanks for the question.

    Inserting

    [ic_add_posts ids='3, 2, 1']

    on a page seems to ignore the listed ID order in favor of... insert order?

    That is, the IDed posts appear on the page in the order 1, 2, 3.

    Check the documentation on this page:

    http://wordpress.org/extend/plugins/posts-in-page/other_notes/

    You're absolutely right, you can put the IDs in any order you like in the shortcode and it'll default to ordering by Post ID, I believe. You can specify order using the following:

    [ic_add_posts orderby='title' order='ASC'] - orderby title - supports all WP orderby variables. Order is optional, WP default

    You can find the other orderby variables here:

    http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Hope that helps.

    Cheers,
    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.