need help quickly understand this line of code!
Posted: Tue Dec 08, 2009 2:00 pm
I am supposing this is the line of code that affects what I need to change.
$files =& get_children('post_parent='.$post->ID.'&post_type=attachment&post_mime_type=application/pdf&order=ASC');
I need to change that line of code to tell the script to order it by the title of the attachment when they view the files from a drop down. Right now it is doing it by date with the oldest at the bottom. Thanks in advance!
$files =& get_children('post_parent='.$post->ID.'&post_type=attachment&post_mime_type=application/pdf&order=ASC');
I need to change that line of code to tell the script to order it by the title of the attachment when they view the files from a drop down. Right now it is doing it by date with the oldest at the bottom. Thanks in advance!