WordPress.org

Forums

Gallery order (8 posts)

  1. Anonymous
    Unregistered
    Posted 8 years ago #

    It's nice being able to order the pictures in the gallery of 2.6.

    Anyway, it doesn't work for me properly when I have a big gallery (say about 30+ pictures).

    In this example I have 54. I think that the flash component orders quite well the pictures (from 1 to 54). But when I 'Save all changes', the order values go from 1 to 35 (thus repeating some values), and it doesn't maintain the order I put.

    Thanks in advance.

  2. Anonymous
    Unregistered
    Posted 8 years ago #

    Anyone with the same problem?

  3. dannyfoo
    Member
    Posted 8 years ago #

    Same here. Not sure why it's not maintaining it's order.

    Tried drag-drop and renumbering. :(

  4. guerry
    Member
    Posted 7 years ago #

    Just drag & drop, at finnish "Save all changes". Then "insert gallery...

    See an examle :
    http://zoran-veljovic.com/blog/2008/08/30/construction-of-the-saint-sava-temple-in-belgrade/

  5. sniemetz
    Member
    Posted 7 years ago #

    nope - not working: the "sort" fields maintain their value but the pics order is not changing when displaying the gallery...

  6. Phil Johnston
    Member
    Posted 7 years ago #

    I am having the same issue - I re-order the images in the gallery area by dragging and dropping them - but it has no effect on how the images are displayed on (in this case) my RSS feed.

    Anyone know what is up?

    Im using a custom plugin to display my images in a feed using:
    Using this code:

    $args = array(
    			'post_type' => 'attachment',
    			'numberposts' => -1,
    			'post_status' => null,
    			'post_parent' => $post->ID
    			);
    		$attachments = get_posts($args);
  7. Phil Johnston
    Member
    Posted 7 years ago #

    What is the purpose of having the drag and drop on the images order if it doesn't actually do anything? Is it used for something else?

  8. Phil Johnston
    Member
    Posted 7 years ago #

    Got it!

    I used a for loop and then checked against current Post Number using attachment->menu_order

    if ($currentAttachmentNum == $attachment->menu_order){

Topic Closed

This topic has been closed to new replies.

About this Topic