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

learn more… | top users | synonyms

5
votes
2answers
771 views

Navigate with keyboard in Gallery shortcode

I am using Wordpress Gallery shortcode and I was wondering if there is a way to navigate using the arrow keys? Like if I view an single image and used the right arrow to navigate to the next image in ...
0
votes
2answers
456 views

Modify Gallery Output to render differently on a PAGE and a POST

I'm still learning Wordpress and slowly getting better, but my skill set is not up to par for the changes I am asking for. I need to customize the gallery output for two sections on my site: 1) ...
0
votes
1answer
19 views

How to retrieve media images urls in different sizes?

I am trying to retrieve just the urls, not the whole image objects, from a gallery. I am stuck, because I can either get only the full size of images via: wp_get_attachment_url because this doesn't ...
0
votes
2answers
1k views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
0
votes
1answer
457 views

Default Wordpress gallery or very lightweight alternative to it?

I've tried looking up but I cannot seem to find the following... What must I include in functions.php and in style.css to have the default Worpdress gallery working? I have a new Wordpress theme, ...
0
votes
0answers
21 views

Wordpress 4.5.3: How to remove shortcode from displaying in gallery post

#gallery-1 { margin: auto; } #gallery-1 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 33%; } #gallery-1 img { border: 2px solid #cfcfcf; } #gallery-1 .gallery-caption { ...
0
votes
1answer
25 views

In a Gallery with limited image posts, how do I not limit images on single post?

I created a function for a theme that limits the amount of images displayed in a gallery. This is within the Gallery post format. However, I want to limit gallery images on all pages except for the ...
0
votes
1answer
102 views

Any plugins that upload, resize, and display images? [closed]

Here is an ideal workflow for my situation: Upload a folder full of images Resize images according to a specified size Have the ability to organize these images into folders (collection1, ...
0
votes
4answers
828 views

Display Gallery Images from Custom Post Type

I want to display all the images added as gallery in a post with prettyphoto class. I am using this code. <?php /* The loop */ while ( have_posts() ) : the_post(); ...
0
votes
0answers
15 views

Upload multiple images into one image per page

I want to upload bulk images which create multiple pages with a navigation (next page, previous page). At a high level I want galleries like 500px.com Example gallery. https://marketplace.500px....
1
vote
1answer
435 views

Wordpress show Gallery Title and Captions

I would like to show the gallery title together with the captions. Below is my attempt, but I keep getting Notice: Trying to get property of non-object . I still can't figure it out what went wrong. ...
0
votes
0answers
14 views

Implement a layout for feautured images on a single category

This is kinda hard to explain but here we go, im trying to use the flex laytout from Freewall for my posts featured images on my category of "gallery", i want only the featured image to display the ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
0answers
20 views

XML Import functionality

I've taken a look across the site and cant seem to get an answer that matches my problem. I am using a plugin called WP All Import Pro which allows XML imports to media gallery and custom meta fields. ...
0
votes
0answers
25 views

Retrieve a Page's Gallery's Images, With Custom Thumbnail Size and Links to Full Image

Using the following function: get_post_gallery( get_the_ID(), false ) Example: <?php /* The loop */ while ( have_posts() ) : the_post(); if ( get_post_gallery() ) : ...
0
votes
1answer
42 views

Automatically add class-attribute to gallery?

I'm making a theme for a client in WordPress and he wants each gallery to have a grouped lightbox, so there's a lightbox for each gallery. I found out you can make it add an attribute to the gallery ...
2
votes
1answer
110 views

Gallery images titles - get from post

Is there any possibility to make a functions hook, which will automatically override titles of added images (or added during gallery creation) with post title? Just like in the example: - im creating ...
0
votes
1answer
24 views

Gallery IDS and Captions: hide/show on a per ID basis

I am aware of hiding captions in a gallery via css on figcaption, like .wp-caption-text/.gallery-caption for example. What I am looking for is a way to have custom control of hiding captions on ...
0
votes
0answers
14 views

Double gallery inserted in posts

I have a code for customizing gallery which I found in this post Custom Gallery HTML only working when images are attached to post/page I have customized it to suit my needs, it is set so that the ...
0
votes
1answer
59 views

How to get post attachments in gallery post format template

I'm doing a WordPress theme, and I get stuck on one thing. As you know, the post-format in WordPress has different types of formats, I did all the types except the gallery slideshow. What I need, for ...
1
vote
2answers
167 views

Pull Random Attachments With Pagination

I want to make a archive page that pulls in all uploaded images to the site. I am using the current script. Its paginating somewhat but not showing all the images. Showing around 90 out of 140. ...
0
votes
1answer
37 views

Get_template_part inside filter?

Is it possible to remove gallery from content but in its place do get_template_part('content-gallery'); ? I have this piece of code which removes gallery from post but I am inserting content-gallery....
3
votes
2answers
2k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: <...
3
votes
2answers
2k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
0
votes
1answer
14 views

Page WYSWIG only allowing slides

How do I add other content to my homepage.It is only accepting image slider. I would like to add some raw html and a gallery below the slides.Removing all images in the slides doesnt reveal the normal ...
0
votes
1answer
25 views

Attachment Metadata inside of Loop

Basically, I'm trying to call attachment info to display withing a loop, for use in an image gallery. I know I need to use wp_prepare_attachment_for_js($attachment_id) but I can't seem to get anything ...
0
votes
0answers
18 views

Change permalink to attachment gallery post and redirect parent post

I have a problem with the photos attached to another article Example: **Photo1** attached in MyPost1 **Photo2** attached in MyPost2 **Photo3** attached in MyPost2 **Photo4** attached in MyPost3 **...
0
votes
1answer
27 views

Pulling in Column Count in Custom Gallery

So close, but I know nothing of php. Would like to be able to pull in columns from wordpress gallery. The very nature of removing the default gallery might make this impossible. I think the secret ...
1
vote
1answer
44 views

Original image not saving?

When i'm uploading a picture, WordPress doesn't save the original image, just the thumbnails? That's why when i'm setting a featured image, the link is broken. Any help to to save the original image ...
0
votes
1answer
56 views

Use bootstrap for wordpress gallery?

I am wondering if it is possible to rewrite the gallery shortcode output (default wp gallery) to use bootstrap responsive columns. WP gallery is not really working as the rest of my theme. I know it ...
0
votes
0answers
7 views

Integrate a gallery with thumbnail inside a div with custom field

I have a tough problem. I created in wordpress template, a portfolio page. When you click on a project picture, a new div opened with other project's pictures. But I would like that my picture are ...
0
votes
0answers
22 views

Display style of attached image

Is there any way to write a filter/action in funtions.php so that all attached image thumbnails in a single post will be opened using the gallery feature on click? I can add the below snippet in ...
0
votes
0answers
40 views

Get ORIGINAL image links from get_post_gallery

I use get_post_gallery( WP_Post, false ) to get gallery data because I build gallery HTML myself. However strangely it only gives list of ID's and list of thumb-urls. What is the best way to ...
0
votes
2answers
4k views

ID of images from gallery

Does anyone know how to get ID's of images from wordpress gallery in post? I have search entire internet and there is nothing to this subject.
0
votes
0answers
50 views

Customizing default WordPress Gallery

I am using the code from another StackExchange WordPress question here: Change Wordpress default gallery output by mathielo And all is going fine with my custom edits to this code (which includes ...
1
vote
1answer
59 views

How to get ID of images used in gallery?

How to get ID of images used in gallery? Using $gallery = get_post_gallery_images( $post ); I only get a string with thumbnails url, without image ID which is needed for basically everything. ...
0
votes
0answers
81 views

Adding a wp_editor to a modal, edit gallery button not displaying?

I've initialized a wp_editor via ajax with quick tags within a wp-media modal, and everything seems to be working great. However If I try and edit a gallery within the modal by clicking it nothing ...
0
votes
0answers
42 views

Change Gallery Shortcode Image Size

I am developing a WordPress theme and have a few posts with galleries (displayed via Jetpack slideshow). Gallery example: [gallery type="slideshow" size="full" ids="1672,1682,1674,1670,1676"] ...
7
votes
4answers
13k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
3
votes
4answers
12k views

How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?

I am trying to retrieve all the images from the Gallery of a page in the order they are set in the backend. So far I have: $my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query( ...
0
votes
1answer
80 views

Replace custom gallery shortcode with default gallery shortcode

I want to replace my custom gallery shortcode in my post content with the default Wordpress shortcode (in pre get posts). I will be doing this in only a certain instance where it will need to be ...
0
votes
2answers
74 views

Responsive Wordpress Gallery

I have been trying to make my Wordpress Gallery responsive with the help from another post: Making WordPress Gallery (.gallery-item) Responsive? I would also like the original 5-column gallery to ...
0
votes
1answer
634 views

Dynamic image grid gallery

I want to create a project with the following image grid gallery. I try to do with the using of masonry JQuery My code : functions.php wp_register_script( 'pkgd', get_template_directory_uri() ....
0
votes
1answer
700 views

How to get the first image gallery of a product in woocommerce in a loop

I want to diplay a product with product image, and when visitor hover that image, will change to first image from product gallery I am using this code to display the image gallery, but displayed all ...
1
vote
3answers
3k views

How to add a random image to a post from gallery and only show one?

I know how to add an image and a gallery. I need to have one image from the galley show on the page at random each time the page is loaded. The page should only show one image at a time. Is there a ...
0
votes
0answers
15 views

wordpress gallery captions

I'm trying to develop a simple content site with wordpress which requires a slider gallery with unique captions for each image within the gallery. $gallery = get_post_gallery_images( $post ); Using ...
0
votes
1answer
21 views

How to move Wordpress gallery image out of the link?

I'm a newbie to Wordpress modifications and PHP in general and I need a bit of help. I've found a post here showing how to modify the native Wordpress galery output. Everything is allright but I can't ...
0
votes
1answer
151 views

How to show a manageable list of images on a post?

I've created a custom post type called product. On my theme's product page, I want to be able to show a basic list of images (ul>li>a>img) on a sidebar like this (quickly googled :P): I ...
0
votes
0answers
15 views

How to compare 2 attachment tags against category tag

I need to compare 2 tags from an image attachment against tags that are used in categoryID=2. And only get returned the tag that is used under the categoryID=2. With that, I should get returned just 1 ...
0
votes
1answer
17 views

Gallery Shortcode Showing IDs

I'm trying to include a gallery in my custom post type. The image gallery works in the editor, but when I view the post I get this. [gallery link="file" ids="590,589,588,587,586,585,578,580,581,582,...