Questions tagged [gallery]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
16 views

Wordpress gallery default settings

How can I set these Wordpress Gallery settings to default to the following settings to save time. Columns : 1 Size : Full Size Type : Thumbnail Grid
1
vote
2answers
32 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 ...
1
vote
0answers
24 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 ...
0
votes
0answers
20 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 ...
0
votes
1answer
17 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.
0
votes
0answers
15 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 ...
1
vote
0answers
19 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 ...
0
votes
1answer
19 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-...
1
vote
2answers
14 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 (...
1
vote
2answers
50 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 = ...
0
votes
0answers
26 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 ...
0
votes
0answers
12 views

Allow public photos galleries on wordpress site

Is it possible to allow other users to upload and create their own photos galleries in wordpress? I would ideally like them to be able create their own posts, with my approval.
1
vote
0answers
24 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:
0
votes
0answers
19 views

Gutenberg gallery block with video support

I want to use the gallery block for displaying images and videos. I guess I could use the gallery block and extend it somehow but I'm not quite sure how to do it in this case. Apparently ...
0
votes
0answers
33 views

Is this so hard to do? Product gallery slider on archive pages [duplicate]

I have tried like 1000 diferent methods and the best thing I got was this: With this code: //* Add gallery thumbs to woocommerce shop page add_action('woocommerce_shop_loop_item_title','...
1
vote
1answer
59 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. ...
0
votes
0answers
11 views

How to alter default post gallery settings from SQL?

I want to change my default posts gallery settings value. for example, Size= Full Size, Link to = none, Column = 5 for my all old published gallery. I found some PHP hard code functions for doing this ...
0
votes
0answers
17 views

Add image description meta

Could really do with some support on this.. So I have a ACF gallery in place. here is my code: <div class="service-gallery"> <?php $images = ...
3
votes
2answers
117 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 ...
0
votes
0answers
12 views

Is it possible to show all pages of a post that used “nextpage” tag in the same page but change URL when scroll?

I want to show all pages (E.G. default image galleries) of a post that used "nextpage" tag in the same page. For example: Page 1 <!--nextpage--> Page 2 <!--nextpage--> Page 3 ...
0
votes
0answers
8 views

How to show gallery in image attachment page?

And how to show all images from article/post at the bottom of this image page (plus NEXT, PREV button)?How to show gallery in image attachment page? Demo here
0
votes
0answers
11 views

How to show post gallery thumbnails in attachment page?

I want to show image gallery thumbnails in attachment page from the post. get_post_gallery images not working in wordpress. look like this
1
vote
0answers
11 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
1
vote
0answers
82 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 ...
0
votes
0answers
7 views

How to convert NextGEN Galleries to WordPress Galleries?

I have some NextGEN Galleries on my WordPress site and now I need to convert then to WordPress Galleries I found a few plugins that work for [nggallery] shortcode but I see my NextGEN Galleries used ...
0
votes
0answers
15 views

Help with get_post_gallery_images()

everyone. I'm trying to use get_post_gallery_images() to retrieve URLs to the images in a gallery in the post I'm using the function. I read that this function will return a string of URLs for the ...
0
votes
0answers
13 views

How do I add a div class to the posts in a filter and not the entire filter element?

I am having some troubles with the Isotope filter gallery, as discussed in my Stackoverflow question here. As per the first point of the accepted answer, I need to add the class .isotope, to the ...
3
votes
0answers
194 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'...
0
votes
0answers
32 views

How to add image zoom on archive products page?

What I am trying to achieve is to have the gallery zoom enqueued into my products archive page, not just in the single product page. This is how far I have gotten so far. It supposed to work, but it ...
0
votes
0answers
13 views

function that gathers all gallery shortcodes

So basically I have a gallery plugin that creates galleries with a specific shortcode. So every time I create I gallery, I first need to create the gallery, and then create a post for it, and the ...
0
votes
0answers
9 views

How to hide “post_content” while using pagebuilder?

In my sitemap page image are not included except Featured Image. this is because I am using a page builder "goodlayer" where has an option to add gallery images. which are not showing in ...
0
votes
0answers
24 views

Gutenberg gallery has no CSS in my custom theme

I just developed a custom WordPress theme and there is one issue I need to fix. While all my pages and plugins work perfectly, I have noticed that using the block editor, the default gallery isn't ...
0
votes
0answers
112 views

same size for all images in Gutenberg block-editor gallery

I need to create a gallery with logos of partners of our website. All logos should always visualize at the same dimensions, so that no logo results bigger than the others. All uploaded images are ...
0
votes
0answers
8 views

Dynamic categories in Javascript

I have a gallery with images and a piece of text. I manage to link image/text using classnames. I basically want to trigger the image when hovering a specific word when they share the same category, ...
0
votes
0answers
9 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/...
0
votes
0answers
55 views

Is there a way to use MediaUpload component with gallery=true property, and allow video files?

Is there a way to use MediaUpload component with gallery=true property, and allow video files? I'm using the component the following way: <MediaUpload onSelect={ this.onSelectImages } ...
0
votes
1answer
17 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
16 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 ...
0
votes
0answers
14 views

How can i update custom image fields through the rest API

I want to have a gallery with clickable images on my site that will redirect the user to an external website. To this end i have installed the plugin "Gallery Custom Links" which adds custom ...
0
votes
0answers
50 views

How can I display only the first image of a wp gallery and open full gallery with lightbox?

I need to display several image galleries in one page and I need to display only the first image of each gallery and as the user clicks on the image, it opens a lightbox that shows that specific ...
0
votes
1answer
28 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 ...
0
votes
1answer
86 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
200 views

ACF Gallery with Isotope filters

I'm trying to achieve a filtreable gallery taking custom categories for every media attachment. I'm using the ACF plugin and Isotope. I managed to show the filter and to display each category to every ...
0
votes
0answers
71 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 ...
0
votes
1answer
20 views

How to calculate the sum of all featured thumbnail height on Wordpress?

In an archive page, I need to calculate the total height of a which is the container of many featured thumbnails, knowing that all the featured thumbnails have different heights (but the same width) ...
0
votes
0answers
19 views

Convert posts that contain 5 or more images to a gallery with prev-next button automatically without any shortcode usage or additional task for editor

I need to convert any WordPress post with more than 5 images to a gallery. Is this possible with any function.php or single.php manipulation/tweak? When I did this, all my existing and future posts ...

1
2 3 4 5
16