Support » Fixing WordPress » Gallery shortcode orderby has no effect?

  • bwooster47

    (@bwooster47)


    Anyone know under what circumstances do the advanced shortcodes work?
    http://codex.wordpress.org/Using_the_gallery_shortcode

    [gallery link="file" columns="3" orderby="ID"
    ids="677,644,640,518,512,101,698"]

    always displays the same order even if I manually change the order of the image ids in the list above.

    I tried include=”…” and that changes the order to something different, but again, cannot influence in by the orderby keyword.

    With/without orderby, the images are displayed in the same order.
    Tried rand, menu_order, ID – no change at all.

    Is there any workaround to force gallery to show the images in the exact order of ids listed in the shortcode?

Viewing 1 replies (of 1 total)
  • Thread Starter bwooster47

    (@bwooster47)

    Just found something:

    [gallery link="file" columns="3"
    ids="677,644,640,518,512,101,698"]

    without any orderby seems to do the trick. orderby seems to have no effect at all in this case. But good enough for me – just wanted the images to be displayed in exact ID order.
    include=”…” and orderby=”ID” did not work, but the above does work.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery shortcode orderby has no effect?’ is closed to new replies.