How to sort thumbnails

Viewing 1 post (of 1 total)
  • #23085
    Felbecker
    Participant

    Hi,

    I want to sort the thumbnails in a arrange of uploading Date. In the moment it sorts by the title.
    I tried some things in the function.php.
    this is the actually version:
    Is it possible to rearange the thumbnails, or does the function only works for new pictures?
    $args = array(
    ‘numberposts’ => 1,
    ‘post_type’ => ‘attachment’,
    ‘post_mime_type’ => ‘image’,
    ‘post_parent’ => get_the_ID(),
    ‘orderby’ => ‘post_title’,
    ‘order’ => ‘ASC’

    Where is my problem?

    • This topic was modified 6 years, 1 month ago by Felbecker.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.