Questions tagged [gallery]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
24 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;...
0
votes
0answers
10 views

How can i showcase all my galleries?

i am working on a Website for News. Some Articles will have Galleries and some not. I want to have a site where one can see all of my Galleries and if clicked all Images are presented with and a linkt ...
0
votes
0answers
21 views

Rewrite image links from attachment id to attachment link

WordPress is having trouble writing links to attachment pages. Sometimes an image links like this: mysite.com/my-post/my-attachment-page Othertimes an image links like this: mysite.com/?attachment_id=...
0
votes
0answers
11 views

Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?

I would like to have my image descriptions added to every image caption on my site. No matter where the caption is shown, I would like to have the description prepended, if there is one to this image. ...
0
votes
0answers
23 views

Create shortcode for metabox gallery

I have a metabox gallery in a custom post type. Usually I display the gallery in the front end using the following PHP code in my theme: $gallery_images_1 = get_post_meta( $post->ID, '_post-metabox-...
0
votes
0answers
11 views

get_post_galleries_images returns false [duplicate]

I couldn't show gallery images on archive page: <?php if ( $gallery = get_post_galleries_images( get_the_ID(), true ) ) : // Loop through ...
0
votes
0answers
10 views

How to add gallery to post and make seperate album page with gallery link to post?

i want too include galleries in Wordpress Posts and also show all Galleries on a single site. Such that every Post has its own gallerie with photos and so that i have a single site where all galleries ...
0
votes
0answers
21 views

How to modify an image Gallery block in WordPress?

simply i want to remove <figcaption> from every image and remove text between <figcaption> tag' <figcaption class="blocks-gallery-item__caption">Image caption</...
0
votes
1answer
36 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 ...
0
votes
1answer
49 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 ...
0
votes
0answers
45 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; ...
0
votes
1answer
45 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 ...
0
votes
0answers
16 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
31 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
24 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
0
votes
2answers
63 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 ...
0
votes
0answers
29 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
39 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
59 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
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 ...
1
vote
0answers
121 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
28 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
93 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
113 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
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 ...
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
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:
0
votes
0answers
53 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
151 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','...
2
votes
1answer
188 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. ...
3
votes
2answers
553 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 ...
1
vote
0answers
12 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
118 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 ...
4
votes
0answers
302 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
1answer
27 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
1answer
18 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
18 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
26 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
1answer
33 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
145 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
24 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
75 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
25 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) ...
1
vote
1answer
340 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
1answer
111 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
1answer
68 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
23 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
1answer
73 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
47 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 ...
1
vote
0answers
41 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 ...

1
2 3 4 5
16