Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
18 views

Theme Gallery on Wordpress Page

I am new Wordpress and want to create a Gallery for showing Templates/Themes thumbnails with Preview option like below links. https://www.appycouple.com/signup/ https://justfreethemes.com/themes/...
0
votes
0answers
17 views

baguetteBox with wordpress

I am using baguetteBox with WordPress and I have an issue and I can't get where the problem is. Every time the page load, I click the first image and it works well and it opens in the popup the modal ...
0
votes
0answers
6 views

Add Field Group to Posts if their Category has a specific meta value

I have an ACF field in category that marks it as gallery or normal category. What can I do in the system/admin so that any post that I add under a gallery category would become a type=gallery post? ...
0
votes
1answer
14 views

Gallery shortcode is empty but magically creates a gallery

I have a post with only this [gallery id="file"] in text editor but in visual, there appears a gallery. I was moving these posts and updating gallery ids automatically, but these posts don't have any ...
0
votes
1answer
27 views

How can I remove “<br style=”clear: both“>”

I want to customise my output of the gallery. What I really do not need is <br style="clear: both"> But it is there because I have to choice a number of columns during building the gallery in ...
0
votes
0answers
13 views

Gallery only displaying the thumbnail picture

When we click to view a full gallery it just shows the full-screen version of the thumbnail. This problem began after we updated our plugins, but I tried deactivating them one by one and the only one ...
1
vote
1answer
18 views

Strange issue with gallery when displays 3 columns

I have strange issue. I've create custom thumb sizes for Wordpress gallery. So this is my code in functions.php: add_image_size('square_thumb_1', 1136, 596, true); add_image_size('square_thumb_2', ...
0
votes
0answers
19 views

Remove [gallery] shortcode and print html

When create new gallery from "Create Gallery" in Media into a plugin I need remove the shortcode [gallery ids="...,..."] that it print after loading and selecting photo action in text editor with a ...
0
votes
0answers
11 views

make post pagination with image from meta post

i have gallery post , with value post is image from meta post , and i want make this post like this fiddle but i dont know how to make it , i was try use this code <?php while ( have_posts() ) : ...
0
votes
0answers
15 views

Random photo size & arrangement for portfolio

I want me make my portfolio page to show different style when the user refresh my page. the picture will display different size randomly e.g. the square image will remain the square image but the ...
0
votes
1answer
64 views

How to Make Wordpress Default gallery responsive on mobile?

I have read about the subject in many blogs and forums but I have not achieved anything. What I would like to do on my page is the following: decalaveras.com On this page, when accessed from mobile,...
0
votes
0answers
19 views

Is there a way to let users download images from a gallery?

What is the best way to let users download images from a gallery? I tried using the NextGEN Gallery plugin with the download addon plugin, but it looks horrible on mobile devices. Thanks again, ...
0
votes
0answers
37 views

Gallery Previews Not Working - wp.editor JavaScript API

When using media buttons on the wp.editor JavaScript API, The default "Create Gallery" functionality is available. Selection and editing of the gallery is working perfectly fine, however the gallery ...
0
votes
1answer
16 views

Native gallery custom html output

I've added image gallery to my page via Add Media > Create Gallery. I don’t want to output default html of the gallery, neither are sufficient options to change gallery sortcode's attributes: itemtag, ...
2
votes
1answer
139 views

Validation error: Extending Gutenberg gallery block

I am trying to extend the Gutenberg core/gallery block to add some new functionality to my image gallery on the frontend. I have created a separate plugin to handle this task. I have registered my ...
0
votes
0answers
55 views

Wordpress show descriptions under images in gallery

I’m new here. I was looking all over the Internet for a solution to show description under all images in gallery, I have found a plugin from Tom auger, but it was not compatible with wp new version... ...
0
votes
0answers
18 views

How to Change Default Image Gallery Size from thumbnail to full?

The code below is working perfectly in overriding my link to media file. But I can't seem to figure out how to change the default image size from thumbnail to full size. example: function ...
0
votes
0answers
6 views

Troubles updating my product images

I use the wocommerce pluggin. I'm having troubles updating my product images in all products. When I created the new product in the link bellow, I press the option to add a product image, I go to the ...
0
votes
0answers
11 views

Photogallery preview (NextGEN Gallery)

I would like to ask you for a little help. The client wants a photo gallery on his website with a few abilities (auto image downsizing, multiple files uploading etc.) I found a NextGEN Gallery as the ...
0
votes
1answer
68 views

Exclude first image from a Woocommerce image gallery

I would like to exclude the first image from the image gallery (this is not the featured image of the product) of a single product page in Woocommerce. I'm not an expert on PHP but, could an ...
0
votes
1answer
24 views

Getting Un Wanted Gallery Shortcode In The Page on Loop

I have a custom Post Type and I am running a regular WordPress loop in single-move.php page to display the textual content of the page only. now while the post has an image gallery I am getting the ...
0
votes
0answers
24 views

Combining multiple galleries (only 1 carousel)

On my page I have added two image galleries, mainly for optical reasons: because I want to have a quote between the two galleries. I am using the catch gallery plugin for image carousel. I would ...
1
vote
0answers
20 views

Can I have the same image in multiple NextGen galleries? [closed]

Is it possible to have the same image in multiple NextGEN galleries without duplicating the image? For example, let's say I have a gallery called "dogs" and a gallery called "cats". If I have a ...
0
votes
0answers
19 views

WooCommerce - How do I make it so that selecting an image also selects the equivalent option in the dropdown?

I am trying to find a plugin/configuration setting that does the following: if a user clicks on an image from the product gallery then the equivalent setting in the dropdown variant selector is chosen....
1
vote
1answer
45 views

Get attachments but only from post gallery?

I can get post attachment images it is ok. But i want to get attachments from only post's gallery? Is it possible? Here is my code: global $post; $id = $post->ID; $post = get_post($post); $images ...
0
votes
0answers
20 views

How to create a gallery output with pagination?

I'm using the get_post_gallery to output all of my images on index.php. I want to use masonry + infinite loading with it but infinite loading requires to have a next page. The code I'm using doesn't ...
0
votes
0answers
36 views

wpdb query to insert images in to post/page gallery

Can someone please help me find a way to insert images in to a post/pages photo GALLERY with a database query. I am currently using a function to insert images into the database and give them a parent ...
0
votes
1answer
52 views

Get caption from unattached images in gallery?

I've created a slideshow that automatically populates with images included in a post's gallery, and I want to display each image's 'caption' field as well. I'm currently using ...
0
votes
2answers
53 views

How to get images using taxonomy ( WP Media Folder)

How would one go about creating a gallery page which is a gallery of galleries - using a specific photo from the subgallery as a cover for the album? This is what I have so far. I have a folder on ...
0
votes
0answers
17 views

Can't use gallery images as attachment for post

I am creating image gallery in wordpress post edit screen. And set link to: attachment page but when i click any image it goes site.com/1.jpg but it must go site.com/post-title/1.jpg
0
votes
1answer
33 views

Can't get the columns of galleries when the user set the column number to 3 if there are 2 galleries?

I'm detecting if the user has a gallery in his post: $gallery = get_post_gallery( $post->ID, False ); $gallery_images = explode( ',', $gallery['ids'] ); And at times I'd like to see how many ...
0
votes
0answers
14 views

uTubeVideo Gallery: How to add videos to video album

Probably really a dumb question. But I am not getting the installation instructions for the uTubeVideo-Gallery. How do I 4. Create video albums for gallery just created. 5. Add videos to video album ...
0
votes
0answers
14 views

how do i can make a preview of image gallery

I have had make an image gallery using WordPress default gallery, with a few images, and those images has title at bottom. I want to, when I have click to an image it being bigger and show a preview (...
0
votes
0answers
4 views

Gallery/Scrapbook/Account System

I am looking for the best method of integrating a 'scrapbook' feature into my website. What I am looking for; 1) A way for users to make an account and save images to their own virtual scrapbook. 2) ...
0
votes
0answers
22 views

SQL REGEX to match attachment IDs used in gallery shortcode

I need identify all posts that use a specific attachment in a gallery shortcode. To accomplish this I've written the following SQL query: // the attachment ID surrounded by word boundary chars // ...
0
votes
2answers
133 views

show image gallery in archives or category page

i want to show image gallery in archives.php or category.php. The featured image and text content is showing but not image gallery. Below is the code inside category.php. I have tested to show one ...
0
votes
1answer
22 views

How to adjust only the template gallery

I'm new to wordpress and I would like to learn how to adjust certain small things. For example I would like to change a gallery. Currently the caption is shown when I hover over the picture. Know I ...
0
votes
0answers
19 views

How to display only 2 WP galleries on page w/Custom bootstrap 4 gallery filter?

First I want to say this code is working. I am posting here for several reasons: 1st - this may help someone else (the WP gallery was not doing much out of the box with wrong markup for bootstrap) 2nd ...
0
votes
1answer
55 views

Easy Image Gallery - Retrieve Serialized Data

I am using Easy Image Gallery. It is called: _easy_image_gallery and looks like it's an array like 1234,5432,2345,..... Now, Easy Image Gallery update to 1.3 is saving into a meta called: ...
0
votes
0answers
20 views

Custom Gallery plugin uploading to different dir, and post to page

I am trying to create a custom gallery plugin for my wp theme. So far I have found snippets on how to include the media uploader to my plugin, and also change my upload directory only for this plugin. ...
1
vote
0answers
51 views

“Scattered” gallery

I'm building a theme for a portfolio-type site. I'm looking for something like this: This site uses some kind of Foundation Grid CSS to size the thumbnails using different sizes. My question is, ...
0
votes
0answers
21 views

Which post have included gallery in database

Like in title, I want to store information about added galleries by default wordpress add gallery in content field (I want to use default wordpress gallery - not gallery plugin). But if in the future ...
1
vote
1answer
157 views

how to link post-thumbnail to original img in a lightbox?

I have a page showing custom post type, but I don't know how to link to the full size image that can be opened by a lightbox plugin. the post page is like: <div class="content" id="main-content"...
0
votes
0answers
480 views

show multiple product photos on WooCommerce single page

I want to show multiple product photos instead of thumbnails. I want my product page to look like this page: https://arhoj.com/products/sip-cup-pink-mink This is how my code look in file: product-...
-1
votes
1answer
47 views

Get images only from a certain post type

I implemented this code on my site and it works. enter link description here But it works only once, I mean then if added other posts the code does not work do not get images from the posts. Even ...
0
votes
0answers
30 views

Can we add a single caption to the gallery shortcode?

I'd like to add a caption to the entire gallery instead of single captions per photo. Is there a way to customize the shortcode to add a caption per gallery? EDIT: I found somewhere how to add the ...
10
votes
1answer
1k views

How to extend the gallery block in Gutenberg?

I'm playing with Gutenberg ahead of its inclusion in core, and I'd like to know how to extend the existing gallery block to change its display. For example, instead of a grid of thumbnails I'd like to ...
0
votes
0answers
39 views

How to generate customized filtered output for the gallery

Question → Just like we customize the default WordPress comment system in the front end how can we customize this for the gallery the way we want to look this in the front-end? Here it is mentioned →...
0
votes
0answers
22 views

Custom gallery displayin and sorting error

I am making frontand gallery uploader. Here is my example code: <?php //start of "for" loop $attach_id = media_handle_upload($key, $post_id); $attach_ids[] = $attach_id; ...
0
votes
1answer
99 views

SQL query : Select a thumbnail for a media

I'm doing a custom gallery for a portfolio page in a website and It works well if I simply use the URL of the media uploaded this way : SELECT * FROM wp_posts AS p INNER JOIN wp_postmeta AS m ON p....