Articles of gallery

WP Gallery showing captions twice

I am using standard WP gallery to display images. I have added caption to every image, image title was not changed so it is same like file name. When I open one image in gallery it shows caption text in span class “TitleText”. This is ok but with some images it shows the same text […]

Dynamic image grid gallery

I want to create a project with the following image grid gallery. I try to do with the using of masonry JQuery My code : functions.php wp_register_script( ‘pkgd’, get_template_directory_uri() .’/lib/js/vendor/masonry.pkgd.min.js’); wp_enqueue_script( ‘pkgd’); header.php <script> jQuery(document).ready(function($){ $(“#grid”).masonry({ columnWidth: 150, itemSelector: “.item”, gutter: 15 }); }); </script> category-36.php <div class=”container”> <div class=”three columns”> <div id=”menu-cat”> <?php wp_nav_menu(array(‘menu’ […]

Gallery shortcode menu order fix no longer working on WordPress 4.0

I currently use the pmc_gallery_menu_order_fix for setting the menu order for image attachments in galleries as seen here: WordPress 3.5 Gallery Menu Order not set? With WordPress 4.0, I am now getting an endless loop on the wp_update_post part of the code. Breaking it down, there appears the post IDs, arrays etc all seem to […]

How to Retrieve data of Gallery Shortcode and display it above a post

I’m trying to style my theme without resorting to custom fields. For gallery posts type, most premium themes are using custom field which is the method I used till now. With it, I could then retrieve the attachment ID’s and display the images in a slideshow above the post title & content. However this results […]

Possibilities for customising the standard wordpress gallery?

I am a photographer with a WordPress site so as you might imaging I need to show off my work in it’s best light. I love the wordpress gallery because it creates great SEO due to the comments underneath the pictures but there’s a problem with the thumbnails. Firstly I am using the newer version […]

Some doubts about gallery shortcode in WordPress

I’m using Jetpack with WordPress and creating a gallery. The thing is that I don’t want all the images from that gallery to be shown, only the last 50 of them. Is there any solution to this using just the shortcode? If not, is there any other solution? Also, I have another doubt about the […]

WooCommerce-like featured gallery

I want to create a gallery similar to what WooCommerce does using multiple “featured image”(s). I have searched and searched, but i cant seem to find any solution to this (not even a thread covering it). I know how to use featured images in a post-type, but it can only have 1 value. Can it […]

How to change gallery grid from 4 columns to 3 columns?

I’m using WordPress 4.2.2 running Gridsby Child theme (version:1.0.1436164618, latest update). I run my site locally using Xampp. My question: the Gridsby theme default homepage offers 4-column gallery grid. I would like to shrink the gallery container and to create a 3-column grid instead. I’m new to WP but I managed to make style changes […]

Use bootstrap for wordpress gallery?

I am wondering if it is possible to rewrite the gallery shortcode output (default wp gallery) to use bootstrap responsive columns. WP gallery is not really working as the rest of my theme. I know it must be a way to do it via my theme functions but I need guide. Thanks.

How to Organize and Sort Gallery of Images

I’m working on a website for an artist. He has many images that he would like a user to be able to sort and filter by custom taxonomy. In addition, he would like a user to be able to navigate through a hierarchical gallery with folders (that display a thumbnail) for each level of the […]