0
votes
0answers
10 views

Change Wordpress Gallery Markup in functions.php

I'm looking to change the markup of the Wordpress Gallery, so that it outputs a new set of code. Ideally, this is what I want (a Bootstrap-based markup). <div class="col-md-3 col-sm-4"> ...
-1
votes
0answers
7 views

Default Wordpress Gallery Questions [on hold]

I have been trying to search and do some research online but am unable to get some answers. 1) I am looking to use the Default Gallery on Wordpress, is there a plugin to add on top of the Media ...
0
votes
0answers
16 views

Gallery image archive page

I need to create an image gallery archive page. Actually I need something like where user will be able to create an image gallery with a few images and with a title through admin panel. The gallery ...
0
votes
1answer
16 views

Thumbnail gallery by date and taxonomy

I'm having problem to create something like image gallery. What I wanna do is, in the home page sidebar, there will be a box named photo gallery which will contain 2 or 4 images thumbnail (just like ...
0
votes
0answers
11 views

Linking Images to Post Page from Categorized Gallery

I used the code from this thread to create a plugin that automatically makes a gallery out of images attached to posts with certain categories. It works great, but now I want to make the images link ...
0
votes
1answer
41 views

Get all image IDs from the Media Library

I'm fairly new to PHP and I believe this is a fairly basic question. I've spent hours searching for an answer but can't quite seem to get things right. So any help would be appreciated. I'm trying ...
1
vote
0answers
106 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 ...
0
votes
1answer
35 views

How to display every pictures from all the posts on one page?

So i want to create a gallery of all the pictures from all the posts into one page. I tried different plugins but they need constant maintain i.e. I have to go add the new picture in the gallery ...
0
votes
2answers
25 views

How to add multiple images in a page

I am developing a WordPress Theme and I've got stuck in a point. What I want to do is to add a box at the right of page editor so the admin of the site can add multiple images on the fly in this ...
3
votes
1answer
89 views

Excludes posts that don't have attachments in the_content()

I'm trying to write a loop that excludes posts that don't have attachments in their content areas. I've got 200 posts in a custom post type called "students". I need to do a query of all students ...
0
votes
1answer
29 views

How to change the target size of images clicked on in Wordpress standard gallery

I want to use the standard Wordpress gallery without using other plugins and stick to the gallery shortcode. So, I know I can change the size of the thumbnails, that are shown in the gallery grid with ...
0
votes
0answers
13 views

Change default gallery image size? [duplicate]

I'm using WordPress' built in gallery feature on a post. However, it produces the images with inline height and width attributes: <dt class="gallery-icon portrait"> <a ...
0
votes
1answer
51 views

Creating image gallery in wordpress

Lets assume I have two following directories fruits and vegetables under my image folder and that I want to show all images on some specific page. My questions are following: How to implement PHP ...
0
votes
0answers
17 views

Possible way to add Wordpress gallery caption

I am trying to add caption to Wordpress Gallery. I can only add caption to each images but, Is there a way to add caption to the gallery?
0
votes
1answer
138 views

Programmatically use nextGEN Gallery

Can I programmatically use nextGEN Gallery? By that I mean I like to programmatically create galleries, albums, add images, and then link them to posts in my WordPress site.
0
votes
0answers
62 views

Breadcrumbs for Single Image page

As we know in different post we can use some image which we uploaded. This image can be used in many post but it has only one PARENT post. My question is how to track from which post the user came ...
0
votes
0answers
31 views

Using ACF to Link Images to Colour

I'm working on a website, where clicking a colour swatch will change the colour of the image displayed. Essentially I need to upload a series of images with a colour attached to each image. I figured ...
0
votes
0answers
24 views

WP Gallery Image Page Issue When 2 galleries share one image

All attached images are stored in WP_POST table and have PARENT_POST which is only one. So if I put some image in one gallery the image will belong to that gallery(post). If I add the same Image in ...
0
votes
0answers
8 views

How can I process $post->post_content before echoing it? [duplicate]

I have a sole image gallery inserted into a page as the content. I want to process the images with regular expressions before echoing them. When I get the content with $post->post_content only one ...
0
votes
2answers
135 views

Display number of latest images from wordpress gallery in your homepage

I was trying to get a solution for something that I am trying to accomplish. I am using the wordpress native and simple gallery to show images in a page called: "gallery" so far - very simple. it ...
1
vote
2answers
2k views

get_post_gallery_images returns thumbs . I want full size

I have the following code on my site. <?php // image gallery content if( has_shortcode( $post->post_content, 'gallery' ) ) { $gallery = get_post_gallery_images( ...
1
vote
0answers
555 views

How to upload image and attach to Woocommerce product gallery?

I got the following code which takes and image, uploads it to my server and sets it as a featured image. How can i change it so it adds the image to the product gallery in Woocommerce? Maybe ...
0
votes
1answer
205 views

How to remove the images from “Uploaded to this post”?

I was wondering if there's a simple way to deselect images from uploaded to this post, but still have the images in the image library? I uploaded some images while i was editing a post and this isn't ...
1
vote
2answers
533 views

Overide Gallery Default Link to Settings

Is there way to control the gallery default “Link to” setting? Using the image_default_link_type filter within a functions.php file works on inserting single images into posts but it doesn't seem to ...
0
votes
1answer
38 views

Category view with contents of [gallery]s shown

SO: I have a bunch of Posts with [gallery]s in them. They are in category "Galleries". I want the category view to show (some||all) of the contents of the galleries in each post. Instead it seems ...
0
votes
1answer
109 views

Re-ordering images in existing post in wordpress 3.6.1

I hope someone can help me. I cannot see how to re-order images once loaded to the media gallery. WordPress used to have a list view of all images in a post with a box you could enter the running ...
0
votes
0answers
113 views

Open a single linked image with popup/modal

on my wordpress blog I have some text and a word is a link to an image. At the actual state of things, when the link is clicked the image is shown by itself, outside of my website. I would like that ...
0
votes
0answers
50 views

How can I let users create and share their own image galleries?

After searching on Google and this site, I found some old, outdated posts regarding this topic, so I figured I'd start a new one. How can I let users create their own public gallery and upload their ...
0
votes
0answers
52 views

Gallery requires a featured image but does not show it in posts/pages

I've encountered a weird bug with my theme's gallery. If I add a gallery, and do not specify a featured image, it will not show in the post/page. If I add a featured image, it will show the gallery ...
1
vote
0answers
179 views

How can I display an image description, from an image gallery?

I have a vanilla install of Wordpress 3.6. I'm using the Twenty Thirteen theme. I've created some galleries. On the individual image page, the "caption" is displayed below the image. I'd like to ...
0
votes
0answers
128 views

Thickbox not displaying just the image, instead showing full page in lightbox

I have implemented Thickbox into my wordpress theme. I have a regular Wordpress gallery that now has the lightbox when you click on any of the images. When clicked the lightbox shows up. However, ...
0
votes
1answer
139 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
160 views

Category page with gallery for each post

I'm looking for a bit of direction on how to set up a category page (for a real estate company). What would be the best way to have a gallery of images (1 large photo and several thumbnails) listed ...
0
votes
0answers
17 views

How do I use two different images, one as a thumbnail and one as a linked image? (1 post)

I want to do an image gallery in a page, where the linked image (a href) is different from the thumbnail's src. I need to have the ability to change the thumbnail image. Its important because for each ...
1
vote
1answer
171 views

Removing featured image from gallery?

I'm having trouble removing the featured image from gallery. I removed all kinds of stuff from those 2 files, but seems like I need to add something, not take away. Here are the pastebin's of 2 ...
0
votes
1answer
16 views

Find only those galleries with images

Is there a way in Wordpress to use WP_Query and retrieve posts/galleries that have more than 0 metavalues with the key _gallery_image_ids. Essentially I don't want to display galleries that have no ...
0
votes
1answer
48 views

Gallery thumbnails very small

When I use the standard WordPress gallery, I get very small thumbnails in the content: Since there is lots of space in the content, I would like to display bigger images. How can I do that? There ...
1
vote
1answer
206 views

Extracting gallery images in Wordpress 3.5 on index.php

I'm trying to add a slider on my front blog page for every gallery post, but I have some trouble extracting the images from the post gallery, using the following code: $post_content = ...
0
votes
0answers
466 views

Multiple gallery thumnbnails on one page

I want to post multiple galleries on a single static page. So far, I've only been able to create a gallery that puts every single picture on that one page. What I want to achieve is several images ...
0
votes
2answers
1k views

Slider do not add alt attribute. Cant get alt attribute from a media library!

I use a slider to show my post thumbnails. But the problem is that the slider adds thumbnails without the alt attribute: <img src="http://example.com/wallpaper-791556-1180x500.jpg" /> But I ...
1
vote
1answer
76 views

Get meta data from image

How can I get the description of the image? $album_id = get_the_id(); $photos = $wpdb->get_results( "select * from wp_postmeta where post_id = '" . $album_id . "' AND meta_key = ...
0
votes
1answer
117 views

Adding different classes to different images depending on size for fine control of image layout in posts

I have all the CSS classes set to display images in a custom portfolio theme. I am allowing for images of different sizes and proportions (landscape, portrait, etc) to be tiled next to each other and ...
0
votes
0answers
56 views

WordPress Gallery Has “Ghost” Image

I have 3 galleries on a single page. All three are wrapped by jQuery Cycle to create 3 simple rotators that each have a thumbnail pager. Each gallery is using the [gallery] shortcode with a few ...
2
votes
1answer
543 views

Setting up a gallery with images and a zip download

I am putting together a little gallery/portfolio for a friend's work and I am struggling to work out where a plugin starts and theme begins. I'm trying to achieve a simple grid of images which link ...
0
votes
1answer
2k views

Change the output for [gallery] shortcode

I'm sorry if this question was answered here, but I couldn't find it. Is possible to change the HTML output of [gallery] shortcode (without plugins)? I would like to show the thumbnails as another ...
0
votes
1answer
689 views

limit number of images shown from gallery

I'm not sure if I'm doing this the right way.. I want to display 4 random images as part of the header of a page. I created a post called Header Images and inside it is a gallery with a bunch of ...
0
votes
1answer
128 views

Autosort uploads in galleries by filename

A client of mine wishes to not have to sort images uploaded into a post gallery, but instead rely on its filename for sorting (e.g. "01_sample.jpg", "02_sample.jpg"). This would save a lot of time for ...
0
votes
1answer
1k views

wp_get_attachment_link() add rel attribute if the link points to direct image

I'm using filter like this to add rel attribute in wp_get_attachment_link() add_filter( 'wp_get_attachment_link', 'sant_prettyadd'); function sant_prettyadd ($content) { $content = ...
0
votes
2answers
925 views

Change the way wordpress outputs images or image galleries

The title is the short version of the question. Here's what I need in more details... If the answer is not so simple, I would be glad if you can point me to the right direction with a tutorial or to ...
1
vote
0answers
81 views

Creating a post image to show in a gallery

Sorry if this title of question is not clear. I have create a custom post template with the help of this plugin Custom Content Type Manager With this plugin i create this , and i am at the Second ...