The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
119 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
111 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
0answers
25 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
63 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
69 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 ...
5
votes
1answer
289 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
116 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
47 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
18 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
0answers
65 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
68 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
124 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
108 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
64 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
75 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
39 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
67 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
196 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
225 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
61 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
79 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
1k 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
128 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
195 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
69 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 ...
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
127 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 ...
2
votes
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( ...
1
vote
1answer
117 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
3answers
429 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
185 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
893 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
496 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
340 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 ...
2
votes
3answers
832 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
363 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
91 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 ...