How to refresh the Gallery images?

You can change this line: ‘orderby’ => ‘post__in’, to this: ‘orderby’ => ‘rand’, Instead of showing the images in the same order as they were passed to ‘post__in’, they will show in random order each time the page is loaded. Keep in mind that if you update the child theme, your change will be overwritten. … Read more

Responsive WordPress Gallery

You need add some CSS to make it auto clear left after each 3th item and need to hide <br> tag Update your code like this- /* For displaying 3 columns on tablet */ @media only screen and (max-width: 800px) { .gallery-columns-5 .gallery-item { width: 33% !important; } .gallery-columns-5 br { display: none; } .gallery-columns-5 … Read more

Gallery attachment not found

I managed to figure this out by playing around but it’s a bit disappointing that I could find no solutions online. There were a lot of people reporting the issue but with no response. The images were included in another post which was set to “draft” this for some reason put the images into some … Read more

Error while uploading photos

make sure you’ve tried… flushing any caching plugins you might be running, as well as server and/or browser caches. deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can’t get into your admin dashboard, try … Read more

Post gallery loop with thumb and full size

There might be other possibilities to this, mine is given below .. First you use the get_post_gallery function to store the image id’s in a separate array .. if ( get_post_gallery() ) { $gallery = get_post_gallery( get_the_ID(), false ); $galleryIDS[] = array(); /* Loop through all the image and store them one by one */ … Read more