WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Shortcode for display order (4 posts)

  1. halogenic
    Member
    Posted 3 years ago #

    Is there a way to specify the sort order of images in a gallery using shortcode?

    There is the options panel which lets you set the sort order on a global basis, but it doesn't seem to be possible to change if for individual galleries.

  2. Joseph
    Member
    Posted 3 years ago #

    You need to use custom fields ngg_gal_Sort and ngg_gal_SortDirection.

  3. halogenic
    Member
    Posted 3 years ago #

    Thank you, that worked

  4. jamminjames
    Member
    Posted 2 years ago #

    How do you use these custom fields? Do you just insert the statements in the shortcode for the post? It's not working for me.

    I have most galleries set to order by file name, but I'm trying to get another to order by image id, so I tried this for the shortcode on the post:

    [nggallery id=9 ngg_gal_Sort=pid ngg_gal_SortDirection=DESC]

    ... but it doesn't work.

    Also, if there's no way to do this with a shortcode, is there a way to get a gallery to re-sort? I don't see one. I've tried renaming the images so that they would sort as I want, but they're still displaying in the same order.

    Please help. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.