Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.

    http://chriswardphotography.net/galleries/fashion-and-portraits/

    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.

    http://www.chriswardphotography.com/test-area/examples/gallery-example3.jpg

    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 :-)

    #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?

    #135552

    Hi,

    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/making-the-gallery-respect-image-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.

    thanks,

    Nick

    #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:

    http://chriswardphotography.net/consumer/galleries/fashion-and-portraits/

    #135554

    Hi artistic24459,

    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.

    Regards,

    Devin

    #135555

    Ok, I will try tomorrow and update you on what happens.

    #135556

    Hi,

    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:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    return "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.

    Regards,

    Ismael

    #135557

    Thanks for that. I will not have time until Monday to have a look sorry.

    #135558

    Hey,

    Let us know if it helps you somehow. :)

    Cheers,

    Ismael

    #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?

    #135560

    You just need to be careful when modifying the data. It was the original reason Kriesi explained to us at least that it isn’t on by default.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Gallery image re-order’ is closed to new replies.