If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
August 15, 2013 at 12:05 pm #27839
I’m having a problem with the gallery element. Each time I go to edit a gallery the order changes without me doing anything. I have over 12 images in most galleries and not sure if this causes the problem. I am also using the large image with small thumbnails options.
This is with all my galleries including ajax. Have you heard of anyone else having this problem?
Its very hard to design the galleries as each time I wish to add an image the order will change. I like to place the images in a set order so my best are at the start. Its like I can only style the gallery once.
Above is an image showing you what is happening. This is for all galleries. The actions I do are as follows:
1. Make a gallery with large review image and small thumbnails with the order I want.
2. Insert the gallery.
3. Update the page (save page).
4. Edit the gallery again (the screen where you can add images or delete from the gallery like the image example link)
This is when it will reorder the images without me doing anything. They will just show up in a different order.
If you hit cancel its back to the original correct order. If you hit insert gallery it will save the changed order.
I hope that makes sense :-)August 15, 2013 at 12:21 pm #135551
I have also noticed that the project order on the full pages (not ajax) are not correct. The next and previous don’t show the correct projects. I am using the re-order plugin?August 18, 2013 at 3:30 pm #135552
It’s possible to change the order of any gallery by rearranging the order of the images after you add each gallery image. Take a look at the first answer here. http://wordpress.org/support/topic/ (Purchase code hidden if logged out) -order
I just repeated your steps 4 times , some i added a new image to the gallery, others just resaved , but everything always came out the way it was supposed to.
Do you have a url you can show us please.
NickAugust 18, 2013 at 6:10 pm #135553
Am I correct in saying that the images are shown in ID ASC order each time you open the gallery?
I need to make the changes from the link you gave me so it does not do this and keeps the order I have put them?
Here is a url:August 21, 2013 at 2:38 pm #135554
The images and the gallery is all a native WordPress function that the theme just hooks into. As far as I now they get stored in whatever order they were set in before.
My only guess on why your galleries are behaving differently would be a plugin or something like that.
You can try deactivating plugins and re-installing the theme files from a fresh download via your themeforest downloads.
DevinAugust 21, 2013 at 6:52 pm #135555August 22, 2013 at 12:55 pm #135556
If you switch the Avia Builder to debug mode, you will see the actual order of the image id on the gallery shortcode. Edit functions.php, find this code:
Below, add this code:
//set builder mode to debug
You will see the actual shortcode below the builder. If you insert the “Gallery” element then added some images, the shortcode will look like this:
[av_gallery ids='2617,2618,2616,2619' style='thumbnails' preview_size='portfolio' thumb_size='portfolio' columns='5' imagelink='lightbox' lazyload='avia_lazyload']
Notice that the ids of the images are listed. You can rearrange them manually. You can also re-order them on the wordpress gallery UI.
IsmaelAugust 23, 2013 at 12:10 pm #135557August 24, 2013 at 6:28 am #135558August 26, 2013 at 11:58 am #135559
I don’t really want to switch to debug mode because ‘as I understand it’ it can break the database if you mess with the code from Avia Builder? Is that correct?
I will over write all the files on the next update and let you know what that does. After that I will turn off all my plugins and see if I still get the problem. Sound good?August 26, 2013 at 5:22 pm #135560
The topic ‘Gallery image re-order’ is closed to new replies.