The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
103 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
60 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
74 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
38 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
35 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
66 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
161 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
190 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
59 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 ...
1
vote
0answers
72 views

How to add custom meta box under Gallery Settings in the “Edit Gallery” popup

I am developing a theme. I want to add option for the user to choose the type of the gallery which he is adding. Will it be a slider, masonry gallery or some other type. I cannot figure it out how ...
0
votes
0answers
14 views

Image gallery thumbnails on product page [duplicate]

I use the WooCommerce theme Mystile, and there is a lightbox function built into that theme (or Woocommerce). I have deactivated this lightbox from the WooCommerce settings by unchecking this " ...
0
votes
0answers
846 views

Get gallery and product gallery images full size

I'm trying to get all gallery images in a while loop of posts (for example a blog page). With the code I'm using right now, I only get the small thumbnail images (150px : 150px). Also I want to get ...
0
votes
0answers
124 views

gallery PHP & CSS

I am creating my own theme, and in order to display a gallery I want to add the PHP to call the gallery, and then use CSS to style it. I am using the plugin from the following site and when i follow ...
0
votes
2answers
180 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 ...
0
votes
0answers
67 views

Getting Wordpress image gallery to output image title as well as caption

I'm looking to do a small tweak to the way Wordpress shows gallery images. I use a 1 column gallery with full width images and would like to output the title as a header and the caption as the main ...
0
votes
0answers
13 views

Bulk img-rename images in gallery

I'm trying to add the content of some text-fields to the selected images of a gallery. I found out, how to create the input-fields. My problem is to get the content of the text-fields and write it to ...
5
votes
3answers
2k views

Split Content and Gallery

Is there a way to split up the post content and the gallery short code. I want to display the gallery outside my normal content no matter how or where it is placed. I can use this to get the shortcode ...
0
votes
0answers
126 views

How to Display Custom Post Type's Gallery (images ) in Through WP_Query

I am trying to load an Image Slider images from a Custom Post Type image Gallery Feature. For example let say I have an Custom Post Type called banner which I can load images to it's Gallery and I ...
1
vote
2answers
3k 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( ...
0
votes
0answers
68 views

WP 3.5 Media Manager: How to Edit Gallery from Insert Media modal (Visual Mode deactivated)

Our installation has Visual Mode deactivated because it tends to eat posts. Therefore, in WP 3.5, once a gallery has been created, there is no way to edit it without Visual Mode. We need a ...
1
vote
1answer
111 views

Add Lightbox To WordPress Native Gallery

Is there a way to check if a gallery is linked to an attachment page or to an image file via jQuery or WP filter? I'm trying to add a lightbox to gallery image that is linked to image file. But I ...
0
votes
1answer
30 views

How can I attach a gallery to a post with a short code?

I would like to attach an image gallery to a post. Here how i am trying to do it: from the posts administration page i click on: add new media -> create gallery Select the images and click to: ...
0
votes
0answers
24 views

Show all galleries in a single page with post title

I am wondering how to display one photo from every gallery, with a title of the post its from, as well as a link to view the rest of the photos in the gallery. This is exactly what I mean: ...
0
votes
0answers
18 views

Replacing Thumbnails with View All Photos

When I make a post with over 20 attachments, I want the post on the index page to have just 10 thumbnails (these link to image.php which eventually links to all 20 photos), with a link that says "View ...
0
votes
3answers
403 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
1answer
157 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) ...
1
vote
0answers
834 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 ...
-1
votes
2answers
28 views

Looking to implement a scrolling gallery in my theme

I'd like to include a scrolling gallery in a theme I am developing. Currently I have the code that "grabs" the attachments and place the thumbs inside a div (without using the gallery shortcode or ...
1
vote
1answer
41 views

In which version of WordPress was the new gallery shortcode implemented?

As of WordPress 3.5, as I'm sure you all know, the gallery shortcode generated from the media uploader changed and now includes a list of image IDs. The gallery shortcode codex page says the ...
1
vote
2answers
456 views

Fancybox not working. why?

Ok, I tried to implement a fancybox lightbox in my custom theme. I enqueued my scripts in functions.php: function ikos_add_lightbox() { wp_enqueue_script( 'fancybox', get_template_directory_uri() . ...
0
votes
1answer
90 views

Gallery plugin forces itself above text

I am using the 'gamma-gallery' plugin. A little modified, that is. The gallery is forcing itself above any text that was in the post. Any idea why that is? Here is the plugins code, if needed: ...
0
votes
1answer
295 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
721 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
112 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
2answers
348 views

zip download plugin works well in localhost but not on live site

I need to offer a zip file download [to registered users] on every post, containing all the images attached to the post. The solution provided in this thread works well for the purpose, although it ...
0
votes
1answer
87 views

Get a Page's attachments in Gallery order

Having created a page and a gallery within that page, I would like to retrieve all the images in that gallery in the order they are set when the gallery is created, i.e. the order which I drag them in ...
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 ...
0
votes
1answer
251 views

How to dynamically insert <a href> in the image caption?

So, below is the Wordpress default generated code for a gallery item: <div id='gallery-1' class='gallery galleryid-203 gallery-columns-3 gallery-size-thumbnail'> <dl ...
1
vote
0answers
192 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 ...
2
votes
1answer
179 views

How do I organize photos for multiple galleries?

I'm working on a site that will ultimately have dozens of photo galleries, each gallery with at least 3-4 photos, and possibly up to 20. Individual photos won't have captions, titles or any other ...
0
votes
1answer
67 views

Get raw image detail from post gallery?

Is it possible to get the raw info from a post gallery and display on the page, specifically for a slider? So can you create a gallery then display the gallery on a page with the full size image, as ...
0
votes
0answers
149 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
2answers
1k views

Creating a gallery of featured images from custom post type

I am new to Wordpress and am busy using it to create an online portfolio site. I have created a custom post type for my portfolio items called 'Portfolio', and I have attached a featured image to each ...
0
votes
2answers
36 views

Detecting if parent page has gallery

My function to detect is a gallery is on a page has broken and Im not sure why. So in my theme template's attachment page Im calling this function: global $post; $parent_id = $post->post_parent; ...
0
votes
0answers
68 views

Trying to get my gallery to be responsive based on the post

I am trying to build a gallery page that is responsive to the post ID. After discussing ideas with a friend who is far more knowledgeable in WP he suggested I use post ID in my arguments that is ...