Ordering photos in gallery in WP2.5
I’m trying to change the order in which the photos that I post using WP2.5’s new gallery functions are displayed. I’d like them displayed in chrono order, but right now they’re being displayed in the order that they’re uploaded.
I found what I thought was a solution, editing
wp-includes/media.phpdirectly and changing the
gallery_shortcode()code to specify the orderby as
post_name ASC(because my camera names the photos sequentially, so it’s as good as by date for most purposes.
Unfortunately, the changes aren’t showing up. I’m not using any sort of cache, and my
wp-contents/cachefolder is empty. If I make changes to the HTML put out by the
gallery_shortcode()code it is immediately reflected in the markup. However, even if I purposely put non-existent row names into the
orderbyvariable (which should throw an MySQL error) nothing happens.
It makes me think something is being cached, but I can’t figure it out. I’ve cleared my own browser cache, tried other browsers, etc., and nothing changes it.
- The topic ‘Ordering photos in gallery in WP2.5’ is closed to new replies.