The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
123 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 ...
1
vote
1answer
73 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 = ...
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
52 views

Altering adjacent_image_link() for attachment pages

I'm attempting to repurpose adjacent_image_link() for use with attachment pages. I have galleries that are based on an attachment taxonomy ("image-gallery") and multiple terms (the specific gallery ...
-1
votes
1answer
476 views

Hover/Zoom on Lightbox gallery

Is there a way to hover/zoom on the larger image in a lightbox gallery. I am using Lightbox Gallery Manager from Raygun and have several galleries on a page. Once the lightbox gallery is opened, I ...
0
votes
0answers
40 views

Linking Attachment page to another attachment page of larger size

I am not sure is it really possible. I have a gallery. But few years ago, I did not cared to make the image size on attachment page full size. You know what I mean, attachment page shows default size ...
2
votes
2answers
893 views

Automatically add this attribute to the gallery shortcode

When inserting a gallery it adds the following shortcode: [gallery columns="6" ids="18,150,146,23,147,17,21,20,22"] I would like it to automatically add link="file" as the last attribute, whenever ...
0
votes
1answer
72 views

How to display some of images from media library?

i try to create a simple theme. I want display several images from media library(same concept of gallery), but i don't want use POST or PAGE, just directly from media library. (of course not use ...
0
votes
0answers
122 views

How to extend media gallery WP 3.5

I'm trying to extent in a theme the media gallery. basically what I'd like to do is to have another button next to 'Insert gallery' that will say something like 'use this images'. And when clicking ...
0
votes
1answer
111 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 ...
1
vote
1answer
56 views

Showing a different gallery in a seperate post

i am using the [multigallery] function and I was wondering if there is a way to use the function to call attachments from another post. For example if i was writing a post about taylor swift and I ...
0
votes
1answer
130 views

Adding Image Count to Multigallery

Ok so I am using the [multigallery] function and it works fine, but one thing I want to add. Here is the code that I am using for the multigallery in my functions.php file function ...
0
votes
1answer
44 views

How to add a div around the default gallery output

I would like to add a container around the default [gallery] output. I don't want to modify any core files, and add unusual lines to my functions.php. How to do that? What's the most elegant method?
0
votes
0answers
50 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 ...
0
votes
1answer
45 views

Which file renders the “Edit Gallery” Settings page?

I was looking for a tutorial on adding options to the "Edit Gallery" page. In the hopes of adding some GUI inputs that would result in the generated [gallery] short-code having custom attributes. I ...
0
votes
1answer
132 views

How to change the output of gallery shortcode

I would like to add the media description as a data-attribute to each image of the gallery. All the other answers favour the solution to copy the whole code from media.php to functions.php and change ...
0
votes
1answer
24 views

Functions Error: Impacting Galleries

The function below controls an option inside an options panel. What it does is choose the number of posts being displayed in a particular archive (to_count archives, to_count_home, to_count search ...
0
votes
1answer
73 views

How to show the image caption on custom post type …?

I Follow this code to make a gallery photo system: $the_imgs = get_custom_field('gallery_img:to_array'); foreach( $the_imgs as $img ) { list( $url, $width, $height ) = ...
2
votes
1answer
390 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 ...
2
votes
1answer
93 views

Attach custom gallery to a page

I am developing my first WordPress website and am trying to find a way to do the following. Website editor needs to be able to create image gallery pages by attaching multiple images with metadata ...
0
votes
1answer
199 views

JavaScript Errors when Loading NextGEN Gallery

I am using NextGEN Gallery and NextGEN GalleryView. (Editors Note: Not sure what this sentence means) But I can't get the image those image was hidden. When I check the css and js files, all of ...
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 ...
2
votes
2answers
311 views

Gallery Only Displaying One Thumbnail

My image galleries are showing only one thumbnail in the post the gallery sits in. http://themeforward.com/demo2/2013/03/08/image-gallery/ My single.php markup can be found here: ...
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. ...
4
votes
1answer
820 views

How to paginate wordpress [gallery] shortcode?

I am using wordpress gallery shortcode [gallery] I was wondering if there is anyway to paginate them without using a plugin.
0
votes
1answer
774 views

Wordpress 3.5 grab first image from gallery

I'm noticing that adding a gallery to a page now just lists the ID's of images, slightly different to before, and reordering the images just amends the order of the ID's listed in the gallery ...
2
votes
1answer
275 views

How to insert Gallery shortcode to a meta box

When we create a Image Gallery from the Media Modal Box and click on "Insert Gallery" button, the gallery shortcode is added to the main text area. Is there a way to detect which Post Format is ...
0
votes
1answer
432 views

Ordering of gallery images without using shortcode in theme

I using the built-in gallery in wordpress to store and sort images inside a custom post type. In the theme I was using: $attachments = get_posts( array('post_type' => ...
7
votes
5answers
519 views

Use a separate custom table (not posts) to handle file upload data

The Problem: Website that has over 100 photos per post. Could possibly swell posts-table beyond 100K entries within a few years. The Dilemma: Would much rather stick to default WP UI for handling ...
1
vote
2answers
616 views

Wordpress Gallery shortcode: Display one category ID only

Good Day. I am using a Gallery shortcode in my wordpress site to display images. Problem is that I wasnt the gallery to show only images from a certain category, for example category id 35. How do I ...
0
votes
1answer
592 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
61 views

Debugs/errors in oqey gallery

When i install this plugin (oQey gallery) i report some errors like: 1) Notice: Undefined index: type in \wp-content\plugins\oqey-gallery\gallcore.php on line 252 On line 252: if($_GET['type'] ...
2
votes
2answers
857 views

Wp3.5 Media Gallery Edit modal: change captions to title

How can i change those editing inputs to title from caption? Some sources i found about new upload system: Using the WordPress 3.5 Media Uploader within plugins How to Add the WordPress 3.5 Media ...
0
votes
1answer
112 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
796 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 = ...
1
vote
1answer
144 views

watermarking gallery items

How can I add an image watermark to only those images which are to be published in gallery using a function in functions.php? Images can be in .jpg, .png, .gif format. I also found this snippet ...
0
votes
2answers
111 views

Numberposts 1 not cooperating in 3.5

Trying to fix my custom gallery after the 3.5 upgrade, and using the code below I'm trying to get the first image of the gallery in "large" size above the content output followed by the remaining ...
0
votes
1answer
125 views

WordPress Gallery Permalink Structure Displaying Incorrectly

When an image is added to a gallery, the resulting attachment URL is generally displayed in a structure like this: example.com/post-slug/attachment-slug/ However, take a look at my gallery: ...
0
votes
1answer
116 views

Wordpress Gallery not being output correctly/consistently

Using WP 3.5.0, Wordpress galleries have been working fine. I use the Cleaner Gallery plugin and Lightbox to display galleries in lightbox mode. Now I am using WP 3.5.1, a gallery I created on this ...
0
votes
1answer
1k views

How to display NextGEN gallery in templates?

I have installed the NextGEN Gallery plugin and have all my images in albums. Can someone please support me in displaying the NextGEN gallery with the use of the Galleryview plugin? Is there any ...
1
vote
2answers
299 views

Custom gallery in wp3.5

I used a tutorial I found for a slick little custom gallery in 3.4, but upon upgrade to 3.5 it no longer works. I'm trying to learn php still and can't seem to get this working again, as I either get ...
0
votes
2answers
847 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 ...
0
votes
1answer
73 views

How to Find a Gallery's ID

Can you please let me know how to find out a galley's ID? and Can we use this ID in CSS styling? if not how we can stylize two different galleries in diffident style?(to be honest I am not sure this ...
0
votes
1answer
736 views

How to Add a Custom Size for Thumbnails for WP - Gallery

I am using "Lightbox Plus" plugin to create lightbox image overlay on the top of thumbnail galley. Now my question is how I can set a size for Thumbnails without affecting on the lightbox image ...
2
votes
1answer
930 views

Display all albums in nggallery on a page

I'm using the popular NextGen Gallery / nggallery plugin to handle photo albums and galleries on my site. I can arrange photos into a album and display it using a shortcode no problem, where I'm ...
1
vote
4answers
2k views

Wordpress 3.5 Gallery Menu Order not set?

With the new Gallery editor in Wordpress I am able to set up my galleries and to drag the Thumbnails to re-arrange the image order. On the backend that seems to work fine. But I ran into an issue when ...
-1
votes
1answer
495 views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
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 ...
6
votes
1answer
501 views

Gallery Inside One Post

For image galleries, I need a code that uses next/previous links to bring you to the next/previous image in that post and keeps the images in the correct order you chose while inserting them into the ...