Build in WordPress gallery. Used to show multiple pictures in a grid.

learn more… | top users | synonyms

0
votes
1answer
26 views

Get_template_part inside filter?

Is it possible to remove gallery from content but in its place do get_template_part('content-gallery'); ? I have this piece of code which removes gallery from post but I am inserting ...
3
votes
2answers
2k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: ...
3
votes
2answers
2k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
2answers
439 views

Modify Gallery Output to render differently on a PAGE and a POST

I'm still learning Wordpress and slowly getting better, but my skill set is not up to par for the changes I am asking for. I need to customize the gallery output for two sections on my site: 1) ...
0
votes
0answers
12 views

Wordpress gallery images overlapping on horizontal scroll

I'm building a horizontally scrolling portfolio which uses the built in wordpress gallery within posts. For some reason the images un the gallery are overlapping and not all of the images are ...
0
votes
1answer
13 views

Page WYSWIG only allowing slides

How do I add other content to my homepage.It is only accepting image slider. I would like to add some raw html and a gallery below the slides.Removing all images in the slides doesnt reveal the normal ...
0
votes
1answer
20 views

Attachment Metadata inside of Loop

Basically, I'm trying to call attachment info to display withing a loop, for use in an image gallery. I know I need to use wp_prepare_attachment_for_js($attachment_id) but I can't seem to get anything ...
0
votes
1answer
434 views

Default Wordpress gallery or very lightweight alternative to it?

I've tried looking up but I cannot seem to find the following... What must I include in functions.php and in style.css to have the default Worpdress gallery working? I have a new Wordpress theme, ...
0
votes
2answers
1k views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
0
votes
0answers
6 views

Change permalink to attachment gallery post and redirect parent post

I have a problem with the photos attached to another article Example: **Photo1** attached in MyPost1 **Photo2** attached in MyPost2 **Photo3** attached in MyPost2 **Photo4** attached in MyPost3 ...
0
votes
1answer
17 views

Pulling in Column Count in Custom Gallery

So close, but I know nothing of php. Would like to be able to pull in columns from wordpress gallery. The very nature of removing the default gallery might make this impossible. I think the secret ...
0
votes
4answers
813 views

Display Gallery Images from Custom Post Type

I want to display all the images added as gallery in a post with prettyphoto class. I am using this code. <?php /* The loop */ while ( have_posts() ) : the_post(); ...
1
vote
1answer
30 views

Original image not saving?

When i'm uploading a picture, WordPress doesn't save the original image, just the thumbnails? That's why when i'm setting a featured image, the link is broken. Any help to to save the original image ...
0
votes
1answer
49 views

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 ...
0
votes
0answers
7 views

Integrate a gallery with thumbnail inside a div with custom field

I have a tough problem. I created in wordpress template, a portfolio page. When you click on a project picture, a new div opened with other project's pictures. But I would like that my picture are ...
0
votes
0answers
18 views

Display style of attached image

Is there any way to write a filter/action in funtions.php so that all attached image thumbnails in a single post will be opened using the gallery feature on click? I can add the below snippet in ...
0
votes
0answers
25 views

Get ORIGINAL image links from get_post_gallery

I use get_post_gallery( WP_Post, false ) to get gallery data because I build gallery HTML myself. However strangely it only gives list of ID's and list of thumb-urls. What is the best way to ...
0
votes
2answers
3k views

ID of images from gallery

Does anyone know how to get ID's of images from wordpress gallery in post? I have search entire internet and there is nothing to this subject.
0
votes
0answers
35 views

Customizing default WordPress Gallery

I am using the code from another StackExchange WordPress question here: Change Wordpress default gallery output by mathielo And all is going fine with my custom edits to this code (which includes ...
1
vote
1answer
32 views

How to get ID of images used in gallery?

How to get ID of images used in gallery? Using $gallery = get_post_gallery_images( $post ); I only get a string with thumbnails url, without image ID which is needed for basically everything. ...
0
votes
0answers
49 views

Adding a wp_editor to a modal, edit gallery button not displaying?

I've initialized a wp_editor via ajax with quick tags within a wp-media modal, and everything seems to be working great. However If I try and edit a gallery within the modal by clicking it nothing ...
0
votes
0answers
36 views

Change Gallery Shortcode Image Size

I am developing a WordPress theme and have a few posts with galleries (displayed via Jetpack slideshow). Gallery example: [gallery type="slideshow" size="full" ids="1672,1682,1674,1670,1676"] ...
7
votes
4answers
11k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
3
votes
4answers
12k views

How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?

I am trying to retrieve all the images from the Gallery of a page in the order they are set in the backend. So far I have: $my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query( ...
0
votes
1answer
52 views

Replace custom gallery shortcode with default gallery shortcode

I want to replace my custom gallery shortcode in my post content with the default Wordpress shortcode (in pre get posts). I will be doing this in only a certain instance where it will need to be ...
0
votes
2answers
65 views

Responsive Wordpress Gallery

I have been trying to make my Wordpress Gallery responsive with the help from another post: Making WordPress Gallery (.gallery-item) Responsive? I would also like the original 5-column gallery to ...
0
votes
1answer
600 views

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() ...
0
votes
1answer
214 views

How to get the first image gallery of a product in woocommerce in a loop

I want to diplay a product with product image, and when visitor hover that image, will change to first image from product gallery I am using this code to display the image gallery, but displayed all ...
1
vote
3answers
3k views

How to add a random image to a post from gallery and only show one?

I know how to add an image and a gallery. I need to have one image from the galley show on the page at random each time the page is loaded. The page should only show one image at a time. Is there a ...
0
votes
0answers
14 views

wordpress gallery captions

I'm trying to develop a simple content site with wordpress which requires a slider gallery with unique captions for each image within the gallery. $gallery = get_post_gallery_images( $post ); Using ...
0
votes
0answers
14 views

Gallery IDS and Captions: hide/show on a per ID basis

I am aware of hiding captions in a gallery via css on figcaption, like .wp-caption-text/.gallery-caption for example. What I am looking for is a way to have custom control of hiding captions on ...
0
votes
1answer
21 views

How to move Wordpress gallery image out of the link?

I'm a newbie to Wordpress modifications and PHP in general and I need a bit of help. I've found a post here showing how to modify the native Wordpress galery output. Everything is allright but I can't ...
0
votes
0answers
40 views

Adding pagination into gallery shortcode

I'm tring to add pagination to [gallery] shortcode. add_filter('post_gallery', 'filter_gallery', 10, 2); function filter_gallery($output, $attr) { global $post; //GALLERY SETUP STARTS ...
0
votes
1answer
142 views

How to show a manageable list of images on a post?

I've created a custom post type called product. On my theme's product page, I want to be able to show a basic list of images (ul>li>a>img) on a sidebar like this (quickly googled :P): I ...
0
votes
0answers
14 views

How to compare 2 attachment tags against category tag

I need to compare 2 tags from an image attachment against tags that are used in categoryID=2. And only get returned the tag that is used under the categoryID=2. With that, I should get returned just 1 ...
0
votes
1answer
16 views

Gallery Shortcode Showing IDs

I'm trying to include a gallery in my custom post type. The image gallery works in the editor, but when I view the post I get this. [gallery link="file" ...
-1
votes
1answer
196 views

How do I change the woocommerce product gallery to show all thumbnails instead of three at a time in a carousel?

I am building a site for a client and I can't seem to figure out how to remove the product gallery carousel setting. For the final result, I want to be able to see all the thumbnails at once and not ...
0
votes
0answers
42 views

Is there an efficient way to query posts's ACF gallery field?

My setup is as below. Custom post type > Page > Custom field (Gallery field) [only one gallery per post] And below is the code that renders all the galleries from the posts on a ...
11
votes
2answers
6k views

Split Content and Gallery

Is there a way to split up the post content and the gallery short code. I want to display the gallery outside my normal content no matter how or where it is placed. I can use this to get the shortcode ...
0
votes
1answer
461 views

How to add 'data-caption' inside an anchor tag

bellow is custom gallery code. function custom_gallery_shortcode( $attr = array(), $content = '' ) { $attr['itemtag'] = "li"; $attr['icontag'] = ""; ...
5
votes
1answer
64 views

Detect if is image unattached

I have problem with unattached attachments. I use image.php to show Wordpress image gallery. I always show "big image" (for current clicked image)...and under that image I show rest thumbs from that ...
0
votes
1answer
54 views

How to make gallery images responsive?

There are pictures, one below the other, inserted by the editor as a gallery. You can see an example on my page here. The problem I have is that this gallery of images is not responsive. Resize your ...
4
votes
2answers
103 views

Using variable from one filter in another filter

I have a filter for the Gallery Shortcode where I grab IDs for images used in a post and using the IDs I grab their meta data. Now I need a way to use the $copyright variable in a filter for grabbing ...
0
votes
0answers
37 views

FancyBox Transitions

If you visit http://www.cube.umbrella.al/minimal/2013/07/25/nokia-lumia-1020-review/ (This isn't my site, but it uses the same format/gallery aspect of my own, its just for demo purposes for ...
0
votes
0answers
44 views

Change flexslider bahaviour according to page width

I have a flexslider that displays photos from an Advanced Custom Fields gallery field on posts with gallery post format. Now, there are different post template widths that the user can choose. For ...
0
votes
1answer
75 views

Custom image sizes not working

I have few images on my theme library. These images have various sizes (640x480, 275x183 and 1920x1200). These images are part of the Theme Unit Test data that you can use to test your theme. Now, I ...
0
votes
1answer
46 views

Post gallery loop with thumb and full size

So the goal is to have a href to the full size image and the img src to be the thumbnail. Up till no i have this <?php $gallery = get_post_gallery_images(); foreach($gallery as $img){ ?> ...
0
votes
1answer
286 views

Where is image gallery information saved?

Where does Wordpress 4 saves image gallery information? It must be in a file because I have not find anything in the database.
0
votes
1answer
66 views

Update caption for metabox gallery images

Just wondering how to make the caption on my metabox gallery images updatable. I have the caption on a textarea so it can be easily updated. I can change the contents of this textarea, cant seem to be ...