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, 10 months ago by Felbecker.