davidized/wp-Pink-Touch-2

Gallery post format is difficult to control

Opened this issue · 1 comments

The main issue is that there is no way to determine which image will be shown on the main blog page because currently the code uses order_by = menu_order but the use of menu_order has been removed and all images are set to 0.

It would be simple to change the order_by to use the upload date/time but that is a rather inelegant solution. I would prefer it to somehow extract the image order from the [gallery] shortcode's id attribute and show the first image listed.

It looks like there is work on creating an API to handle the extraction of ids from a gallery shortcode for WordPress 3.6.

See: wp#22960

Related tickets on wp core trac:

I'll have to keep an eye on this and update things once the new functions are added to core.