Questions tagged [gallery]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
30 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
9 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
5 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
8 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
12 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
19 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
6 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
33 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
16 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
11 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
12 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
9 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
13 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
20 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
32 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
21 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
41 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
64 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
16 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 ...
0
votes
0answers
10 views

Images not filling up a full gallery page - gaps left at end

I'm having an issue on a portfolio gallery page at https://www.petrabishai.co.uk/collections/attachment/ In this particular gallery there are a lot of images so they flow over onto a second page. For ...
1
vote
1answer
115 views

Theme is Causing Ajax Conflicts for a plugin I cant identify it

This is a bit of a odd one, It is plugin related but sadly 1 month without a response from the Owner of the Plugin im turning to the community The Problem is that I have this plugin "Visual ...
0
votes
0answers
12 views

Is there a way to present store location on products images?

We have a multi vendor market place and we would like the customers to be aware where are the vendors location when observing a product. Hence we would like to add a label on each product image that ...
0
votes
0answers
27 views

Wordpress custom gallery issue displays image default.png

I have a custom gallery in each single page of my Custom Post Type. The issue is visible in the front end with the 'wp-includes/images/media/default.png' image displayed as the first one in each ...
0
votes
0answers
10 views

images click popup form and submit images captions in email to admin?

Create Custom Post gallery..archive page display images. customer can click Enquiry Now button.. this button popup form submit all detalies name,email,phone no,msg to send email to admin
0
votes
0answers
9 views

ACF Gallery field - Auto load all posts featured images

Is there a way to load all featured images from one post type from one post category into an ACF Gallery field which updates the load query for example on each field request or other auto triggers? ...
0
votes
1answer
33 views

Remove curved edges from thumbnails in gallery (elementor)

Im using basic Elementor and it is automatically curving the edges on the thumbnail images in my gallery. I would like clean crisp edges, does anyone know how to do this. Here is the example on my ...
0
votes
0answers
7 views

Is there a way to create archive pages or video galleries by using external playlist URL

Hello I want to know if I can make some kind of archive page that auto upload results feeding from a external url. My goal is to make this using a video playlist so each link in the page should open ...
0
votes
0answers
16 views

Ajax call of Wordpress function

Can someone show me a good example of how to call a PHP function with Ajax? I'm trying to save an image gallery (with dynamic number of images) to database in the admin settings section. The below ...
0
votes
1answer
16 views

Images hidden from wordpress gallery

We recently move some articles to a new domain. Now the problem is the images though on the site don't show up in gallery and when you search for them you don't see it. But upload image file with ...
1
vote
0answers
17 views

Unyson Framework doesn't show gallery images

I want to show post's uploaded images but it doesn't show... What am I doing wrong? $gallery = array(); if ( function_exists('fw_get_db_post_option') ) { $gallery ...
0
votes
0answers
35 views

Download button for all gallery images in WooCommerce product page

I'm trying to figure out a code to download all gallery images under each and every product with one press of a button. Thanks! Regards Rasmus
0
votes
1answer
9 views

Feature image Gallery made from Custom Post type + Categories

Hey guys im trying to find a way to create a little gallery (Will post a image of what I need) Using Custom post type's Featured Image's where I can swap the image's based on category I have 0 idea ...
0
votes
1answer
34 views

How is it possible that a gallery doesn't have attachment ids?

I have a function that looks at the attachment IDs from a normal gallery (let's ignore Gutenberg galleries for now, they have a different structure altogether): \get_post_gallery( 0, False );, this ...
0
votes
0answers
17 views

Only column gallery on mobile device

I have a portfolio with a 3 column gallery in my Brix theme in Wordpress. The website is alanllontopfotografia.com But in mobile devices i see 2 columns, and i want to see the gallery item in one ...
0
votes
0answers
25 views

Display image gallery if more than 1 image

I'm using this code to display image gallery in posts: <?php echo do_shortcode('[gallery link="attachment" columns="3"]'); ?> How to display image gallery ONLY if the post has more than 1 ...
0
votes
0answers
176 views

Set default image link to large size target in Gutenberg image block

I try to make the Gallery block to link to the large image size (not full size), how to do this? function modifyLinkDestinationDefault(settings, name) { if (name !== "core/image") { ...
0
votes
0answers
18 views

how do you add a gallery to the homepage without using a post or page?

okay ive been pulling my hair out trying to figure this out. im trying to add images directly onto the homepage. ive created a gallery with a shortcode, and have added the shortcode into a post. but ...
0
votes
1answer
18 views

Append Media/Attachment IDs to Gallery Shortcode HTML Output

I've been trying to find a simple and elegant solution to append the media/attachment IDs to my [gallery] shortcode html output. I've seen various functions to rewrite the whole output of the [gallery]...
0
votes
0answers
20 views

Gutenberg gallery is not shown as gallery

I use in many of my articles the Gutenberg Gallery Block. During my last journey in December 2019 everything works fine. Now the Galleries are no longer shown as a Gallery in the live website. The ...
0
votes
1answer
24 views

How to have a gallery in which each image's caption is a whole “post”?

I want to have a post like a gallery, but each image has an analysis for it. That analysis is like a post itself, with headings, paragraphs and some even have galleries within. I can make the post a ...
0
votes
0answers
13 views

Image Gallery photos aren't cropping, even though they're set to crop

Can someone help??? I know I'm uploading relatively high-res photos, and yet they're still not filling the frames of the image gallery I'm creating in the post. I've set the switch to "Crop" in the ...
0
votes
1answer
19 views

How to make in wordpress a gallery with 3 colums to 1 on mobile devices responsive?

After taking a lot of time researching websites I ask for help in this forum. Im looking to have a gallery on the website like this: decañamo.site When the webpage is open it goes from the 3 ...
0
votes
1answer
76 views

Change default values of Gallery Block settings

How to change the Default Settings of Gutenberg Gallery Block When creating a new Gallery Block, I want the default values to be Columns: 2 and Crop Images: false
1
vote
0answers
216 views

How to create a gallery custom field for WordPress post?

I would like to create a custom field for WP posts that behaves like a Gallery Block (I can upload or choose photos from Media Library, and save data to this field). So that, on the frontend (in the ...
0
votes
1answer
47 views

display post format text in loop

If post format is Gallery or another then echo my custom text. Get post format from post id. I want to do like this code in wordpress post loop if (isset(get_post_format(gallery))){ echo 'Gallery'; } ...
0
votes
0answers
39 views

Tiled gallery not working, latest Wordpress visual editor

I am trying to create a tiled gallery using the newest Wordpress visual editor as such (this shows up in the editor): But when previewing the site it looks like this: where the image is super big. ...
0
votes
0answers
21 views

How to Create unique gallery in WP?

I came across a website where they have attached ten images in the gallery, each image is pointing/opening within the post itself, when you click on the gallery thumbnail, it loads up as a new page ...
0
votes
2answers
92 views

Lightbox not showing image caption

I am using Jevelin theme and their Lightbox should showing image caption from alt attribute. Hovewer it doesn't works. Here is the link: https://www.coleopterafarm.cz/galerie-zlatohlavci/ I am ...

1
2 3 4 5
15