The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
170 views

Define size for `get_post_gallery_images`, they seem to have been resized to 150x150

I'm using get_post_gallery_images and it's spitting images out as 150x150. It doesn't look like it takes a size parameter, so I assumed it would just spit out the largest image or preferably one of my ...
0
votes
1answer
32 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 ...
1
vote
1answer
152 views

Connecting Wordpress gallery to custom categories (taxonomy)

I want to use the Wordpress gallery to show all pictures of one category in a gallery (on a fixed page), which I do not have to update all the time by inserting the pictures manually. So I added the ...
1
vote
2answers
85 views

(solved) how to have the gallery shortcode output one single UL list instead of several DL?

I need the built-in gallery shortcode to output UL instead of DL. How can I do it? I know I can use the 'post_gallery' filter, but that means almost duplicating the media's gallery_shortcode function. ...
1
vote
1answer
101 views

How to get clean code for a gallery?

I want clean code for a gallery, like: <div class="gallery"> <ul> <li><a href='../wp-content/uploads/2014/04/lgitem-01.jpg'><img width="150" height="150" ...
0
votes
1answer
81 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
1answer
72 views

Add anchor tag on previous_image_link / next_image_link

I am using big headers on my website.I need the next/previous_image_link to target to the picture , not the top of the page. Is it possible to add anchor or to set the target on ...
0
votes
2answers
153 views

How to create a custom image gallery in the footer?

I need to add sponsor images, thumbnails, in the footer of a Wordpress website. I'd like the possibility to just upload images through the native Wordpress media gallery and then having a way to ...
1
vote
2answers
71 views

Change Wordpress Shortcode added in to post

Problem: I am using a plugin that turns the wordpress gallery into a cool slide show. How ever, every time I make a gallery - Wordpress add this code to the post . [gallery ids="334,332"] I need ...
0
votes
1answer
150 views

How to copy [gallery] shortcode between posts using polylang [closed]

We're using the excellent polylang to translate our website content and themes , there are a range of options about which fields and settings are duplicated between paired pages. We've selected to ...
0
votes
1answer
45 views

gallery image size

I have been looking for a couple of days for a filter for the WordPress gallery. I have tried many different codes but nothing seems to work for it. I am not using a plugin. I am talking about the ...
0
votes
0answers
20 views

Wordpress communication through XML-RPC.NET

I'm currently using XML-RPC.NET library to communicate with my Wordpress site. I have successfully created a simple client for adding postings under Posts. However, I cannot seem to find something ...
1
vote
1answer
684 views

Add an image gallery to a custom post type?

I am pulling data from an external web service into a custom post type. This data includes images. How can I create an image gallery, add some existing attachments to it, and associate it with a post? ...
0
votes
0answers
136 views

WP eCommerce Product Gallery not working

We're not sure when this started but there was recently an update to WP eCommerce and the Product Gallery has stopped working. Wondering if anyone else has experienced this? What we have tried: ...
1
vote
1answer
53 views

Is it possible to setup a gallery in the backend without including it in the content?

I want to setup a gallery without including it in the content to be able to access it in the theme files. Currently I use a dummy page that only contains the gallery and isn't reachable from the ...
0
votes
1answer
56 views

the_content() won't load galleries on homepage

I need to show a gallery that's on the content of one of the pages I'm displaying on the homepage (I altered the query so it would display pages instead of posts). If I open the page directly I can ...
0
votes
0answers
156 views

custom gallery filter with image caption as link title?

I use a custom gallery function to alter the normal Wordpress markup. Usually it's fine but I can't quite figure out how to add the image caption as a TITLE attribute on the thumbnail link. (The ...
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
0answers
64 views

Page loads all pages of the image gallery with pagination

Same as my previous question I have moved to new website. Here there is a page which contains an image gallery with pagination. The text code is like this: [gallery columns="6" ...
1
vote
1answer
108 views

Calling WP Gallery Uploader/Selector From Metabox

When I click the Add Media button on a Post/Page, I have the option to Add Media. After selecting media, I click Insert Into Post, and the images are inserted. However, there is another option, which ...
0
votes
1answer
23 views

Moved blog - galleries don't work

I moved my client's blog with nearly 800 posts from an ancient installation of WordPress to another host and a new version of WordPress. Now, several months later, we noticed that she had a few posts ...
0
votes
1answer
338 views

Add gallery id to rel attribe of wp_get_attachment_link

Now i have this snippet in my functions.php /** * Add rel to links. */ function add_rel_to_gallery($link) { return str_replace('<a href=', '<a data-fancybox="true" rel="group" href=', ...
0
votes
0answers
71 views

Reorder “menu order” of attachments to another predefined order

I want to show photos attached to a post in a gallery using the built-in system with a custom order. Currently with the [gallery] shortcode it is posible to order it by name, by upload date, by ID, ...
0
votes
0answers
92 views

Show different category galleries without page refresh using Galleriffic and Wordpress

I'm using Galleriffic in a WordPress site to display a gallery of images. The images belong in several different categories, and I want users to be able to filter by category via a submenu without the ...
0
votes
1answer
382 views

How to create manually a fancybox gallery?

premise i don't really know anything about wordpress framework, i only know how to use it. I need to change an already exists gallery with loooots of images, with a simple gallery like fancybox (the ...
0
votes
0answers
24 views

Gallery just showing plain short code like [gallery ids=“240,236,275”]. how to solve this?

I've followed this codex The WordPress Gallery after I added the gallery when see just plain text like [gallery ids="240,236,275"] the sample page : gallery page I did not add any filter or ...
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
2answers
56 views

Multiple thumbnails and one gallery

I'm looking for solution for a gallery on a WP page that shows multiple thumbnails of images in that gallery, but not all thumbnails in gallery (like default Galleries in WP works). I want ...
4
votes
1answer
171 views

Modifying the media-template.php file, the right way?

The [gallery] shortcode accepts the columns='0' as an attribute so that it doesn't insert any breaks in the HTML between gallery items, however this option is not available in Gallery Settings ...
1
vote
1answer
79 views

Remove hyperlink on gallery shortcode

I use a gallery shortcode in my index.php (theme directory) to display 3 boxes of images. The images are fetched from my Media. <div class="well well-clear" style="padding-bottom: 0; ...
0
votes
1answer
27 views

I want to add a gallery to a post but I don't want it displayed in the content?

I want my user to able to add a gallery to a post and then run a conditional like: <? php if (strpos($post - > post_content, '[gallery') !== false) { echo do_shortcode('[gallery]'); } else ...
0
votes
0answers
39 views

Is it possible to create a separate page for custom posts gallery?

Here is what i have so far. single-cpt.php On this page I would like to create another custom meta box, which will be an additional 'editor'. I would like to be able to add a gallery to this editor. ...
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
145 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
53 views

Migrating jQuery gallery to Wordpress

I'm moving my website to Wordpress and I'm trying to migrate my old gallery over. This uses Jquery and picasa. I've tried a few ways of loading the scripts, played with jquery versions, even ...
0
votes
0answers
63 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
2answers
96 views

Dynamic Gallery

I'm building a single page website and that means that all the links need to call for post content dynamically. I found this tutorial and with the help from some folks from StackOverflow I managed to ...
0
votes
0answers
92 views

Insert Gallery Doesn't insert shortcode

I have a custom posttype where for some reason the "Insert Gallery" button generates an javascript error Uncaught Error: Syntax error, unrecognized expression: [gallery ids="113,111"] ...
0
votes
1answer
54 views

How to customize the gallery shortcode in WordPress?

I want to change WordPress's main gallery shortcode style to something like the picture below! Any idea ?
0
votes
0answers
57 views

Passing more options to: wp.media.gallery.edit

I am calling the media gallery edit screen like so on the front end: wp.media.gallery.edit('[gallery ids="70,71,72"]'); The right images get loaded (70,71,72), but the media library shows just a ...
0
votes
0answers
34 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
33 views

How can I make gallery slideshow width fit to picture width?

I am using WordPress 3.8 and I want to make gallery width to fit image width.How can I do that? Currently it look like this: I want it look like this:
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
1answer
19 views

How to get pictures of the Wordpress post

During the post creation of a post in Wordpress, I add 2 pictures in the post Gallery. How can I retrieve uploaded pictures URLs to display them on the other template?
0
votes
1answer
64 views

Change the values of numberposts gallery

I have installed this plugin (http://wordpress.org/plugins/media-categories-2/) to categorize my images. In my functions.php I have put the following code to limit the number of images shown in the ...
0
votes
1answer
28 views

Making a [gallery] in a loop with attachment IDs?

I dont understand why this returns nothing but a blank screen. But if you echo the $attachment->ID you get a string of ID numbers. The goal is to produce a gallery with the wordpress [gallery] ...
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
1answer
109 views

How to hide first gallery for every post?

I'm using galleries for attaching images, so the very first gallery for every post is used to generate a slider and nothing more. That's why I don't want to see it in post's conent. Let's say I have a ...
0
votes
2answers
147 views

Changing Gallery images size?

I'm grabbing URLs of my Gallery images: $gallery = get_post_gallery_images( $post ); foreach($gallery as $thumbnail) { echo $thumbnail_slideshow; } The problem is all I'm getting are ...
0
votes
1answer
55 views

Why do all Gallery functions return null for me?

This is how I'm creating new galleries: I start with making a new post. then I click on Add Media > Create Gallery after that I select a few images from Media Library (let's say 3 of them). and ...