Questions tagged [gallery]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Galleries are limited to 12 images

I have used the wordpress gallery for my posts. with 10-40 photos per gallery. Since today, however, only exactly 12 photos per gallery are displayed in the all the posts on my website. (although I ...
Beat's user avatar
  • 1
0 votes
1 answer
92 views

Uploading images via ACF update_field function

I am trying to update image fields within a group in ACF via the update_field function I am successfully adding the images to the media gallery but I am having trouble getting them added to each ACF ...
grzybowski1911's user avatar
0 votes
0 answers
22 views

Dynamic Gallery: Worpress' equivalents for Wix's collection and repeater

I am recently trying WordPress (the WordPress.com one instead of WordPress.org) to create a webpage that displays a list of events that the website visitors can participate in. I have been using Wix ...
mawgumelar's user avatar
0 votes
0 answers
76 views

Show an ACF gallery in a lightbox with thumbnails nav

I used "Foobox" plugin to show a ACF gallery (hidden) start from a single image. Here is the code used if ( have_rows( 'lsv_prodotto' ) ) { while ( have_rows( 'lsv_prodotto' ) ) { ...
Claudio Mattioni's user avatar
0 votes
0 answers
32 views

Wordpress Gallery only allowed 10 times per post

I am trying to use the gallery shortcode multiple times within a post, two images per gallery, 15 shortcodes per page. It will only work as expected with modal popup for the first ten iterations, the ...
commbot's user avatar
0 votes
0 answers
9 views

How to add more images horizontally to existing gallery using elemontor

I deleted all my unattached images from media as I had so many copies not being used and now I'm missing all my images in my gallery. The grid is already there so it should only be to upload add the ...
Johanna's user avatar
1 vote
0 answers
16 views

Change display size of one image in a Gallery block

I'm new to Wordpress. I've created a simple blog site, pretty much just out of the box, latest 6.2.2 version. When I create a post, it uses the block editor. When I create a Gallery block, and add ...
Sandra's user avatar
  • 111
0 votes
1 answer
34 views

Gallery Block in template, validation fails after adding column number

I have set up a template in a block like so: const TEMPLATE = ['core/spacer', {height: '100px'}], ['core/gallery', {templateLock: 'false', columns: 2}] ; const ...
Fou Rorty's user avatar
0 votes
1 answer
46 views

Trouble with Wordpress Gallery since update using has_block('gallery'

I've got a custom post type setup which displays a gallery below the hero. It's setup to display the first 9 images in a gallery using the following code, when one clicks the "View All Photos&...
Art in Flight's user avatar
1 vote
0 answers
37 views

Theme.json_ Set default columns for gallery

I want to set a default number of columns for the gallery block within the theme.json-file. Is that possible? I couldn't find anything regarding this. I tried some things under settings "blocks&...
Fou Rorty's user avatar
0 votes
0 answers
18 views

Images uploaded in customized gallery do not link to media

I am trying to set the default values for uploaded images and galleries to always be full size and link to the media. As per an answer to this question, I created block variations for the image and ...
Richard K's user avatar
0 votes
0 answers
15 views

How to move all images in a post to a single gallery for a bunch of posts?

So, I have just addded bunch of blog posts, just pasting the pictures as seperate pictures. Now, I want to switch to using galleries for ALL of the posts. Any idea how? Thanks in advance
MajliTech's user avatar
0 votes
1 answer
219 views

Custom Gallery Block - Uncaught TypeError: setAttributes is not a function

I tried building my own custom gallery gutenberg block as shown here to get more familiar with the block structure. Putting all the code into a single file works fine, but when I try to split it up in ...
Fou Rorty's user avatar
0 votes
0 answers
21 views

how to add this type of gallary photo number counter?

i want to show photo number in wordpress default gallery like this one https://www.filmibeat.com/photos/shubha-raksha-set-internet-on-fire-with-her-bold-hot-pics-86451.html or site like https://...
Tuhin Biswas's user avatar
0 votes
1 answer
43 views

WordPress default gallery pagination when in page (is_page)?

It seems I have found the way to make WordPress default gallery pagination to work and to have control over URL forming: Pagination with WordPress default gallery? But when gallery call is in post. ...
BonMoDo's user avatar
  • 11
0 votes
0 answers
110 views

Delete images from media library when user deletes an image from ACF Gallery

When a user deletes an image from the gallery in wp-admin I need it to be deleted from the media library too. I have a function using the acf/update_value hook which works uncorrectly. When a user ...
Da Markuzz's user avatar
0 votes
1 answer
372 views

Custom default settings for WP native Gallery Block

I've started with MarkJ's answer - JavaScript included into the block editor. I wanted to control more attributes for gallery than linkTo — the number of columns, cropping, and image size. wp.domReady(...
Rafiozoo's user avatar
2 votes
0 answers
178 views

WordPress Block Variation for Gallery Columns

I had this code to extend the column count to 10 for a specific need. wp.blocks.registerBlockVariation('core/gallery', { name: 'prefix-gallery', title: 'Custom Gallery', attributes: { ...
Shawn M's user avatar
  • 21
1 vote
2 answers
311 views

Media changes not updating posts

What happens: Write a post Create a gallery Upload a random picture Set caption to "test" Publish Post Go to Media -> Select the picture from before Set caption to "changed" ...
CasualBen's user avatar
  • 123
1 vote
1 answer
240 views

Pagination with WordPress default gallery?

Here is the part of code handling pagination in functions.php: // Pagination Setup $current = (get_query_var('paged')) ? get_query_var( 'paged' ) : 1; $per_page = 3; $offset = ($current-1) * $per_page;...
BonMoDo's user avatar
  • 11
0 votes
1 answer
196 views

How to get all attachment image from post ?? WordPress

I just want to get all atachment image from post with Alt, description, title, size, resotution and how to add DOWNLOAD button? i want to create image downloading website on wordpress for example LINK ...
SauRav's user avatar
  • 5
0 votes
1 answer
841 views

Allow users to upload and display multiple photos

So basically I have a social website and I want for Wordpress users to be able to upload pictures and display them on their front end profile page. I have been looking into the user submitted ...
robert0's user avatar
  • 203
0 votes
0 answers
311 views

How to change Gallery image url in product page ? In function.php?

My code is like add_filter('wp_get_attachment_url', function($url){ if(strstr($_SERVER['HTTP_ACCEPT'], 'image/webp')!=false){ return $url.".webp"; }else{ return $url; ...
Harvey Wang's user avatar
0 votes
1 answer
253 views

How to get the Gallery form/section just like in Gutenberg block?

I am making a custom php page in wp-admin and required to upload multiple images and display it after upload and select images to display. Basically I would like to have the same effect as in Image ...
murni's user avatar
  • 37
0 votes
0 answers
63 views

How do you obtain a list of all image file names on a wordpress website for replacement?

Good Day, I hope somebody can assist me please. I have to replace/re-upload all the images on a website, as they were uploaded as massive files. I have to downsize all the images, and want to know if ...
Zenith7 Productions's user avatar
0 votes
0 answers
70 views

Display metabox galleries on specific page template in admin editor

I'm building a Wordpress website with two metabox galleries displayed only on post type page in admin editor. What I'm trying to do is to display them only for a specific template page in the admin ...
Mathieu Préaud's user avatar
0 votes
2 answers
523 views

Implementing a modal(lightbox) for all images in all post-gallery posts

I'm trying to make a photo gallery page for all my photos in my post-gallery post and have a modal open when you click on the photos. In the page there will probably be almost 100 photos and i'm not ...
Jomeb's user avatar
  • 1
0 votes
0 answers
60 views

Pre-load images into a new users media gallery

After a user registers on my site, I send them to a form where they create a product listing that requires a featured image. Is there a way for me to have images pre-loaded into a new users media ...
Jack01671's user avatar
0 votes
0 answers
204 views

Render metabox gallery in frontend

I'm building two metabox galleries on the same page with the help of a tutorial. The code works fine. However the galleries are automatically displayed after the content on the front end. What I would ...
Mathieu Préaud's user avatar
0 votes
1 answer
203 views

How can I add hover text to images of a basic gallery on wordpress elementor?

I have a basic gallery of images. I want to add a caption that is only visible on hovering over the images of the gallery.
Vaibhav Sharma's user avatar
0 votes
0 answers
21 views

a SET of wordpress native galleries with title and text?

How to make it in the simpliest way ? see graphic structure, -a SET of items in wordpress page -and EVERY item is: one gallery (the best solution -> wp native gallery) on left, with title and ...
TralaT's user avatar
  • 11
1 vote
0 answers
501 views

How select multiple document as like media gallery

I want to make a document(.pdf) gallery with multiple selections exactly like the image gallery. So that when I click on a button or something wp.media selection frame will be popup and can select ...
Razon Komar Pal's user avatar
0 votes
1 answer
322 views

Customise the WordPress gallery html layout

I want change the WordPress gallery html layout, By default, the output of HTML is as follows: <div id="gallery-1" class="gallery galleryid-184 gallery-columns-3 gallery-...
och's user avatar
  • 29
1 vote
2 answers
357 views

Target WooCommerce Product Gallery Image (rather than Featured Image) for og:image

I'm using the following code to set my Open Graph meta data in functions.php It works great for selecting the featured image, however I would like to set it to use the product gallery image instead (...
Daniel's user avatar
  • 21
1 vote
2 answers
313 views

WP Filter to change the URL of an Anchor wrapping the last gallery image

We have a normal WordPress gallery on a development webpage. The page is custom content through Advanced Custom Fields, and we are wrapping the section above's content like so: <?php $content = ...
SRDMH's user avatar
  • 55
0 votes
0 answers
28 views

How to get all id_attachment with one loop?

I have some lines of code which shows the url of my wordpress image gallery by means of an id, but I need it not to have to be selected by me, if not that every time an image is added, it is not ...
Joel López's user avatar
1 vote
0 answers
25 views

Media Gallery Upload photo incorrect way like glitch

I start having this issue like 3 days ago, I disable all plugins but nothing works. See the examples: Original photo: after I upload:
z00x's user avatar
  • 11
2 votes
1 answer
441 views

How to get Gutenberg Gallery Block to output thumbnail images?

By default, the Gutenberg Gallery Block outputs full size images in 3 columns. This is excessive, especially on mobile, so I would like to set it in the theme or function file to output thumbnails. ...
Neil Hillman's user avatar
3 votes
2 answers
2k views

How to include externally hosted images into a gallery block

WordPress has a really great native gallery function. The only downside I find is that it requires you to have the images on your domain. We have a blog for fun, and a very cheap hosting plan. Which ...
Luuklag's user avatar
  • 87
1 vote
0 answers
20 views

Customizing the attachement page to show rest of all images in a gallery from post

How to customize the attachment image page with previous and next navigation button and show below rest images in a gallery ? I just added a visual representation Post page Attachment page
Sreerajdesign's user avatar
1 vote
0 answers
197 views

Split loop to load WordPress gallery into Bootstrap modal and carousel

I have created WordPress coding to loop through gallery images from a post, create a thumbnail gallery display in two cols (that resizes to one col at the mobile size, since the default WordPress ...
jtm2012's user avatar
  • 11
5 votes
0 answers
697 views

Is there a core Sortable component in Gutenberg?

I managed to somewhat replicate the product gallery metabox from WooCommerce in Gutenberg using the third-party react-sortable-hoc component. As it seems that this component is no longer supported, I'...
leemon's user avatar
  • 1,806
0 votes
1 answer
226 views

how automatically show the image title before the image caption/description in a wordpress gallery?

I am using a simple Wp 5.x gallery like this [gallery size="full" columns="1" ids="6304,6305,6306,6307,6308,6309"] The gallery shows me the images and the captions/...
Waldemar's user avatar
0 votes
1 answer
37 views

Images getting smashed

I am developing a web site and I have encountered a problem regarding images and galleries. Images are getting smashed whenever you enter the page, once you refresh a couple of times, it gets fixed ...
Daniel Robledo's user avatar
0 votes
1 answer
26 views

Making the caption & click through link more visible on a gallery photo

I need help with the standard Image Gallery in Wordpress. My aim is to have a custom click through (to another WP page) for each photo. I have managed to do this by inserting the URL into the name of ...
mVentures's user avatar
0 votes
1 answer
107 views

How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?

I am trying to implement a Gutenberg gallery with 10 images with a 4 column gallery. The first two rows coming fine with 4 column images each row. But the issue is that the last row, which has 2 ...
MACMAN's user avatar
  • 101
0 votes
1 answer
70 views

change the h3 subtitles of the wordpress gallery shortcode

When I create an image gallery in a WordPress entry with shortcode [gallery] and put their titles on them, they appear in H3 Any way to change them to be on h4? Example of a gallery image created in ...
juan's user avatar
  • 1
0 votes
1 answer
279 views

making wordpress gallery responsive

I'm using a 4 column native wordpress gallery on my homepage: https://www.peace-ed-campaign.org/ (see just below the slider). When viewed on mobile, the 4 columns/images remain side-by-side and shrink ...
pttony's user avatar
  • 1
0 votes
0 answers
26 views

Displaying all the images from all of my articles

I'm trying to replicate that codepen but using php wordpress. Basically I want my blogpost images displaying in another div and it changes every time you select another menu. Thanks for the help. Here ...
pual's user avatar
  • 113
0 votes
0 answers
95 views

Programmatically Altering Gallery Link and image size?

I am in the process of implementing a new template on a site that I manage. part of that migration includes changing the embedded Galleries link setting from file to the attachment page. I've looked ...
gsueagle2008's user avatar

1
2 3 4 5
16