Home Forum Plugins WP Attachments Feature request: sort attachments alphabetically Rispondi a: Feature request: sort attachments alphabetically

#270
Marco Milesi
Amministratore del forum

Hi Kesseret, and thank you for Your Feedback.

I prefer to reply here because the “official” WordPress Forum is not confortable for me, neither i like its “Policy” and moderators behavior (since i had some replies deleted cause they wanted to be the first and offer their professional services).

As regards your request, i am planning to expand this plugin (more back-end flexibility and more options, as yours) as soon as i will have more time. Meanwhile you can hack this plugin by editing wp-attachments.php and change line 59 to whatever you want.
Now it’s set to ‘orderby’ => ‘menu_order’. This means that all files would be shown in the order chosen in the media edit screen (you can drag ‘n drop files there to change the order).
You can change this line to:
'orderby' => 'date' and maybe add another line: 'order' => 'DESC'
You can find more at http://codex.wordpress.org/Template_Tags/query_posts#Orderby_Parameters

Regards,
Marco

Utilizzando il sito, accetti l'utilizzo dei cookie da parte nostra. maggiori informazioni

Questo sito utilizza i cookie per fornire la migliore esperienza di navigazione possibile. Continuando a utilizzare questo sito senza modificare le impostazioni dei cookie o cliccando su "Accetta" permetti il loro utilizzo.

Chiudi