WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Orderby in output? (5 posts)

  1. DirtyPete
    Member
    Posted 1 year ago #

    Is there a way to alter query so that posts automatically show up with newest at top to oldest at bottom of the list? Looks like I might be able to order the ID. Would prefer not to require my admins to use drag functionality in backend if possible. Thanks, great plugin.

    http://wordpress.org/extend/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Just to make it clear: you're looking for new Attachments to show up at the top of the list instead of the bottom when added?

  3. DirtyPete
    Member
    Posted 1 year ago #

    Yes. Exactly.

  4. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Currently there's no config option for that, but I'll add your request to the list!

  5. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again, I wanted to let you know that two things have been added in version 3.4 that should help you out. The first is a new parameter when setting up Instances, if you set append to false, new items will be prepended to the list (instead of appended) in the WP admin.

    Please see https://github.com/jchristopher/attachments#setting-up-instances for more details on that.

    Further, you can now filter your Attachments when retrieving them in your them using a new filter as of version 3.4.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.