The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
1k views

Display X images from a gallery in the sidebar

I've been hunting around for a day for this answer and thought I should turn to StackExchange in the hopes someone has an aswer. My goal is to display X images (for example, 4) in the sidebar of this ...
0
votes
1answer
47 views

Checking for 'gallery' shortcode using strpos always returns false

I want to conditionally enqueue a script and stylesheet depending on whether the [gallery] shortcode is used in posts. Here is how I am doing it (based on): function doraemon_scripts() { if( ...
0
votes
0answers
95 views

Add a second native gallery with custom layout.

I’m absolutely fine with native wp 3.5 gallery, I’ve styled it to my needs and it’s awesome. But what I’m trying to figure out now is there any way to add one more native gallery with different layout ...
1
vote
3answers
3k views

Is it possible to import NextGen Galleries into Wordpress Galleries and convert embeds in all posts?

Let me explain — Until now, I have been using NextGen Gallery, and since I have a redesigned website that has image.php template (gallery attachments page), I would like to use Wordpress' built-in ...
0
votes
1answer
84 views

Gallery stripped from excerpt of post

I'm having trouble with galleries being stripped/filtered out of the content of the post excerpts before the "read more" click (the galleries load just fine when you click and read the post all by ...
1
vote
1answer
126 views

How is a gallery associated with some post in database?

I see galleries are represented as separate post records with post_type = 'gallery' in the database. How is this record (gallery) associated with a basic post (type = 'post') in the terms of database ...
0
votes
1answer
115 views

How to show an image popup when one clicks on an image thumbnail?

I have created a Gallery View shortcode plugin. I wanna add an feature to that which is - Whenever someone clicks on any image in that gallery, that image should get open in a stylish popup window. ...
0
votes
0answers
40 views

Merge two WP single blogs while keeping galleries intact

Combining two single instances of WP (3.5), BlogA and BlogB (which includes a WP gallery with every post), into a new blog, NewBlog. BlogA is a standard WP blog. BlogB uses a custom post type ...
0
votes
1answer
633 views

How do I attach images to a post without inserting them?

I'm developing a theme with an built-in gallery outside of the post content. So what I want to do is to allow editors to attach images to a page/post without inserting them. Kind of like the featured ...
0
votes
1answer
36 views

How to display images that was uploaded in the media gallery and not by the current post?

I have uploaded images before in my other posts and now I want to display it in my Photo Gallery. I'm using an isotope layout so I'm not using the native gallery of WordPress. It's working just fine ...
1
vote
1answer
140 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 = ...
1
vote
1answer
65 views

Display gallery on bottom after content

How to execute the gallery shortcode after any other content no matter where the shortcode is in the post HTML? Thanks.
0
votes
1answer
514 views

Image thumbnails slider

js-image-slider.js var sliderOptions= { sliderId: "slider", effect: "13,17,13,13,5", effectRandom: true, pauseTime: 2600, transitionTime: 500, slices: 12, boxes: 9, ...
5
votes
2answers
3k views

Check if post/page has gallery?

I'd like to run some code only if a gallery (inserted with the [gallery] shortcode) has been inserted into a post/page. I did the following: gallery_shortcode($post->ID) ? $gallery = 1 : $gallery ...
0
votes
1answer
109 views

Disable Linked Gallery Images If Mobile Browser

So I found this question here: Proper Way to Remove Thumbnail Links In Gallery and looks to have a good answer, but how can I make that apply only if the user is on a mobile browser, or at least if ...
0
votes
0answers
57 views

WordPress Gallery: How to change the order in media.php

i want to change the order like this: NOW: <div class="thumbnail"> <div class="gallery-icon"> <a href="###"> <img width="400" height="300" src="###"> ...
1
vote
4answers
5k 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
99 views

How do i display the built-in gallery inside a widget?

I want to display a specific gallery (without a plugin = WordPress built-in gallery) inside a widget. I tried the shortcode [gallery ids="717"] but that doesn't work. Maybe a workaround could be ...
7
votes
9answers
1k views

Creating a photo gallery in WordPress [closed]

At times I've tried a few different solutions for a WordPress-powered photo gallery. There are lots of options, including plugins and custom post types. Theme matters a lot, here. ma.tt has a pretty ...
0
votes
0answers
49 views

Wordpress gallery image link gives 404 when not logged in

I'm attempting to use the default Wordpress gallery (from the post editor 'Add Media' then 'Create Gallery'). When logged in as an admin and clicking an image in the gallery on the resulting blog ...
0
votes
1answer
1k 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 ...
-1
votes
2answers
676 views

Gallery Pagination by Row

I created a picture gallery at: http://ellenandjosh.com/?page_id=5. Currently, I have a loop that displays pagination after a certain number of images : http://pastebin.com/N6nRRUei. Normally this ...
0
votes
0answers
116 views

Each user can edit only one page

I have website that let the user publish her business. Each business has a private page with some details and an image gallery. Each business owner has a user. I should make, that each user (each ...
0
votes
0answers
95 views

Dynamically load JJ NextGen Slider/ Slideshow (dynamically add shortcode with jquery)?

My front page includes an image slideshow by JJ NextGen Slider (Link). Therefore I am using PHP and do_shortcode(). This is the full code: <?php echo do_shortcode('[jj-ngg-jquery-slider ...
0
votes
0answers
362 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 ...
1
vote
0answers
42 views

How do I export WordPress galleries?

I am trying to export the WordPress galleries but can't seem to find any functions that do that. I want the data and attachments of the galleries in a WRX Format.
0
votes
0answers
108 views

Hook into 3.5 Media Gallery UI Update Event

I have been trying to create an extra tickbox that will intercept the wordpress gallery shortcode so that I can add my own parameters to the shortcode. So far I have managed to add an extra option to ...
0
votes
1answer
118 views

Changing layout of defaul gallery output to masonry

I'm changing the default layout for gallery shortcode. I have this in my functions.php: $attr['columns'] = 1; $attr['size'] = 'full'; $attr['link'] = 'none'; $attr['orderby'] = 'post__in'; ...
1
vote
1answer
2k views

Default Gallery Edit/Template Editable?

I quite like the default WordPress Gallery, but i dont like how it plonks the images as thumbnails, with a link to the larger image. Is there anyway to make it display the images not in a thumbnail ...
0
votes
0answers
62 views

Custom field for default gallery

How I can add custom field in default WordPress gallery? in visual editor and in shortcode.
0
votes
0answers
55 views

Adding shortcode field to edit gallery / Gallery Settings

I want to add a field to the Add Media / Edit Gallery / Gallery Settings column which is able to accept shortcodes. I want to do this so that I can add a Cart66 shortcode which will "render" an add ...
0
votes
1answer
36 views

How do I add tags/taxonomy to images + a query field on page to query 'albums' (images with same tag/taxonomy)

I've got lots and lots of photos on my site and I want to seperate them into albums. Every album is a client album (photoshoot). Though.. I want all my clients to query their album on my site. ...
0
votes
1answer
129 views

How can we create a wallpapers gallery with different resolution?

I want to make a wallpaper gallery which can detect the screen resolution & give the option to download wallpapers in different resolution.
0
votes
0answers
26 views

Calling Images from a Gallery when Post is Clicked

http://acesystech.com/edge/ Im wanting to do something simlar to this, where the customer can click a project and see a scrolling images block of the images, however i want to do i with like click ...
0
votes
1answer
168 views

What makes a placeholder resizable in Tinymce?

It's not that hard to make a plugin to TinyMCE, similar to what the Wordpress gallery is doing in WP 3.5. Unfortunately, these custom placeholders are always non-resizable, although they show the ...
0
votes
1answer
357 views

Advanced custom fields and Slideshow gallery desn't work together? [closed]

Im using WordPress 3.5.1 and the twentyten theme. I'm using advanced custom fields and want to ad a slideshow. I'm using the plugin Slideshow Gallery ( ...
1
vote
1answer
163 views

GalleryView binding for WP Gallery, without NextGen

Is there a WP plugin that binds jQuery GalleryView to the stock WP Gallery? I love the appearance of GalleryView, but I don't want to have to use an external image & gallery database like ...
0
votes
0answers
16 views

standard wpGallery for post won't work

I'm trying to get the standard wpGallery running in my post. I followed this tutorial. But I ain't get it working. This is what my editor shows while editing a page: http://i39.tinypic.com/6ivi1z.png ...
0
votes
1answer
66 views

Gallery order specified by shortcodes is ignored in gallery function

I have the following gallery order in a shortcode: [gallery ids="1996,2431,372,447,645,641,647,642,649,643,650,648,653,697,652,390"] And I have this function, which creates a nicer looking gallery: ...
0
votes
1answer
380 views

Paginate Gallery [closed]

I am using the default WordPress Gallery (along with the Cleaner Gallery plugin) to display some images. The one thing that the gallery doesn't seem to have is pagination. What I'd like to do is after ...
1
vote
2answers
475 views

How do I create a gallery page?

I've been pulling my hair out trying to figure out how to make a photo gallery page. I hope I can explain it in a way everyone can understand. I have alot of galleries on my site and I would like to ...
0
votes
2answers
832 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 ...
0
votes
1answer
43 views

Adding a gallery to my first theme

I have been spending a lot of time the past few months researching on how to create my first theme. That said most tutorials/books only discuss static sites and I want to go about this well prepared. ...
0
votes
1answer
123 views

Gallery shortcode numerical sorting

When I try to sort a Gallery created through the [gallery] shortcode by numerical titles I get them sorted in alphabetical order. That means that they are sorted like so: 1, 3, 34, 4, 56, 6, etc. ...
2
votes
1answer
3k views

Gallery set to “Media file”, showing as attachment page

I am using WP 3.5.1 and lightbox plus 2.5.5 I have my lightbox set to "Use for WP Gallery" Lightbox is working successfully on one of my posts with a single image, but on another post I have 3 ...
1
vote
2answers
7k views

How to show description under an inserted image?

I'm using wordpress' native media manager. I have a problem. I can show the title under the image. But I want also to show the description. Is it possible to do?
1
vote
0answers
75 views

Way to add captions to gallery images by code

I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
1
vote
2answers
2k views

How to get gallery id inserted to a post?

Is it possible to get a specific Gallery ID inserted to a post in wordpress 3.5? I want to load gallery from post using Ajax. I use shortcode [gallery] to do it. But when I use it this way: echo ...
1
vote
1answer
124 views

add img class to native wordpress galleries

Trying to add an img class = "the image alt field" to the images in a native wordpress gallery so i can use jquery isotope to filter the gallery. I could use the image alt field or the description ...
0
votes
1answer
182 views

Create Short code dynamically

I want to generate short code for my gallery dynamically. For a single gallery, it is easy to create a short code for my gallery using add_shortcode( 'image-gallery', 'gallery' ) Now my question is ...