WordPress.org

Support

Support » How-To and Troubleshooting » order posts by date of last image attachment?

order posts by date of last image attachment?

  • Just wondering if there’s a way, order all posts in a category, post with most recent image attacment first, post with 2nd most recent image attachment next, ect..

    I know a wee bit about query filters, I’ve searched around but I’ve haven’t encountered any code that would sort posts in this way. I imagine it involves some kind of prior checking for attachments, filter the most recent attachment for each post, then order all attachments by date. Or something like that!

    I’m out of my league. Can’t find that plugin either. Any help greatly appreciated.

  • The topic ‘order posts by date of last image attachment?’ is closed to new replies.
Skip to toolbar