The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
231 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
1answer
25 views

How to refresh the Gallery images?

I am using The Ken theme for one of my client, and they want to keep refreshing the Gallery images every time the page load. I could see mk_gallery.php files, as I am not hard code PHP developer so ...
1
vote
0answers
12 views

Custom wordpress gallery option

I would like to add custom option to default wordpress gallery tab. I need something simple just a drop down to add offered style, this would add predefined class to gallery on client side and on ...
0
votes
0answers
4 views

Replacing Gallery Shortcode with Foundation's Clearing

Using wordpress 4.1 and Foundation 5, and attempting to replace the stock gallery shortcode with foundation's clearing. In debugging mode, I get a notice of: Strict Standards: ...
0
votes
3answers
489 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
0answers
6 views

SocialSharable Categorized Image/Posts Gallery [on hold]

I am trying to make a Gallery Similar to that of the one in http://www.usatoday.com/ [Above Footer]. I also want to be able to Share the Image/Post to social media. Is there a plugin that i don't know ...
0
votes
2answers
715 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 ...
1
vote
2answers
36 views

Responsive Images

Is there a native function to display the correct responsive image size for post thumbnails or gallery images depending on the screen resolution? Normally I'm using: 1.Custom image sizes: function ...
5
votes
1answer
113 views

Best approach when modifying the Media Manager

I am trying to edit the Media Manager to allow the selection of a new option in the "Link to" select field. This Backbone template is currently defined in media-template.php <label ...
1
vote
2answers
336 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 ...
1
vote
1answer
43 views

Gallery Shortcode - only show first x thumbnails

Is there a way to only show the first 6 thumbnails on the actual post but when a user clicks on any of the thumbnails, then he can browse all images in the post gallery? Essentially, I would like the ...
0
votes
1answer
21 views

How do I extract a gallery image from databse?

I am using Tribulant Gallery Voting to have a Pet contest on my website. The plugin adds a Vote button below each image in the gallery. I want to show the 'Top 5' Pet photos with most votes in the ...
0
votes
1answer
21 views

Get title attribute from galleries

I managed to get all the images of a gallery from another page using get_post_gallery() and I entered a description for each of them in the edit gallery window. I tried using get_image_tag() to get ...
0
votes
1answer
26 views

Where is image gallery information saved?

Where does Wordpress 4 saves image gallery information? It must be in a file because I have not find anything in the database.
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
1answer
47 views

Some doubts about gallery shortcode in Wordpress

I'm using Jetpack with Wordpress and creating a gallery. The thing is that I don't want all the images from that gallery to be shown, only the last 50 of them. Is there any solution to this using just ...
0
votes
1answer
28 views

Gallery with shortcode not showing

I've created a gallery in a static page of my wordpress site, like this: [gallery type="rectangular" ids="129,13,126,34,130"] This page has ID=63, so I'm trying to display this gallery in my ...
0
votes
1answer
13 views

Display images with same specific value?

I'm trying to make a slider for my website, but I'm a little bit stuck right now. The thing is that I don't want to use any plugin (I prefer to try to learn how to do this, and also most plugins have ...
1
vote
0answers
19 views

Extending Media Gallery - Retrieving values from short code

There are some existing questions that discuss how to add fields to the gallery dialog box and get those into the short code. What I want to be able to do is facilitate editing an existing short ...
0
votes
1answer
349 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 ...
0
votes
0answers
24 views

Post gallery as carousel

So I have this idea in mind: I would like to create custom page template, and whenever in post gallery is between tags, for example: Lorem ipsum somethinginkgsd.... [carousel] Gallery here ...
2
votes
1answer
32 views

how do i embed the pdf gallery in wordpress post

I want to show the epaper of newspaper. Is there a way that i can embed a gallery of pdf in post just like the gallery of images
0
votes
1answer
305 views

Dynamic image grid gallery

I want to create a project with the following image grid gallery. I try to do with the using of masonry JQuery My code : functions.php wp_register_script( 'pkgd', get_template_directory_uri() ...
0
votes
0answers
21 views

How to add gallery support to a custom post type?

I've created a custom post type. add_action( 'init', 'my_custom_post_type' ); function my_custom_post_type() { register_post_type( 'my_custom_post_type', array( 'labels' => array( ...
2
votes
1answer
2k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
1
vote
1answer
74 views

Having Problem On Getting WP Post Gallery Images URL

I need to get the URL (actual Size) of all images of gallery associated with a post in single.php. The following code from Codex returns all images in very small size 150x150 which is not suitable for ...
0
votes
0answers
16 views

Issue on Getting WP Gallery Items In cpt-single.php As Attachments

Having a "Custom Post Type" called Projects I am trying to get actual URL of images added into Post Gallery and list them in class other than WordPress built in .gallery. This is the code which I ...
1
vote
0answers
38 views

How to have different captions for same image, for galleries?

Seems like I can't have the same image in different galleries with different captions. Is it possible to make that working in any way? Like if we could change the shortcut code that Wordpress is ...
0
votes
1answer
85 views

Wordpress Gallery with ID's Shortcode not Working

Currently, the code below runs well if I use the old gallery shortcode that looks like this [gallery] . However, after Wordpress 3.5 update gallery shortcodes now include the image IDs by default that ...
2
votes
1answer
42 views

Add new images to top of existing gallery not bottom

I have existing wordpress gallery. When I add new images to it, they are added at the bottom of gallery automatically but I would like to have them at the top as first images in gallery. Of course I ...
5
votes
3answers
4k 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
55 views

How can i embbed two different galleries in custom post type

I have a created a custom post type 'services'.I want to upload and embed two different galleries. I researched and got various codes to create meta boxes from where one can upload the image. But ...
0
votes
1answer
19 views

How can I detect a chosen Isotope layout option from within Javascript to generate appropriate layout?

I am trying to make a custom gallery post where a user may select Isotope layout modes (masonry, packery etc.). I don't want to create a custom template for each layout mode and then get it depending ...
1
vote
1answer
32 views

Wordpress show Gallery Title and Captions

I would like to show the gallery title together with the captions. Below is my attempt, but I keep getting Notice: Trying to get property of non-object . I still can't figure it out what went wrong. ...
0
votes
2answers
259 views

Load Gallery Images with Title on Homepage BX Slider

I need to display all thumbnails of a gallery on the homepage using the Roots theme with links to one page with a shortcode. The gallery has to be loaded as list items using BX Slider's jQuery to ...
2
votes
1answer
1k views

How to remove title attribute from gallery links and images

I want to remove the title attribute from within the output of a [gallery] shortcode e.g. <a href="url" title="bobby"> <img src="url" title="bobby"/> </a> should be: ...
0
votes
1answer
52 views

Show Wordpress Image Title Under Custom Portfolio Image

I got this custom portfolio php file here: http://pastebin.com/B4ZgdQZT or you can see it below at the end of the question... The problem is that I can't manage to show the image title. I tried ...
0
votes
1answer
63 views

Display custom gallery in each wordpress post

In my website there is post thumbnail slider. Post thumbnail slider will show images related with blog post. I want when we write any post then it will allow me to upload few images via media uploader ...
0
votes
0answers
16 views

Standard WordPress gallery - Possible to open image in page?

I have the standard gallery which works OK. It is configured so that when someone clicks a thumbnail it opens a larger version (at the moment- the full sized version). The issue is that when clicking ...
0
votes
1answer
22 views

Find only those galleries with images

Is there a way in WordPress to use WP_Query and retrieve posts/galleries that have more than 0 metavalues with the key _gallery_image_ids? Essentially I don't want to display galleries that have no ...
0
votes
2answers
975 views

ID of images from gallery

Does anyone know how to get ID's of images from wordpress gallery in post? I have search entire internet and there is nothing to this subject.
0
votes
1answer
22 views

Options for an SEO gallery?

I am currently using the standard Wordpress gallery which I like because a lot of my visitors find me through Google after searching some text which is included in the image description. It obviously ...
0
votes
2answers
35 views

WordPress HTML5 Gallery Support - Convert HTML4 -> HTML5

As of WordPress 3.9, WordPress generates HTML5 Galleries if HTML5 is supported in the theme: add_theme_support( 'html5' ); Originally in my theme development I did not declare HTML5 support and ...
0
votes
1answer
33 views

Create thumbs/gallery from custom fields

I'm looking for some direction on what the most proper way to achieve a particular layout on a page. Basically I'm looking at a horizontal, scrollable set of thumbnails at the top of the page's body, ...
0
votes
0answers
49 views

Image gallery with load more option

I want to create a photo gallery in my site. I will have several categories(or albums). The main thing I want is a load more button at the bottom of a gallery. Let's say in a gallery there are 30 ...
0
votes
1answer
28 views

how to open image gallery in a post/page?

I have created image gallery in a page using Add media. When i click on an image, it takes you to the attachment page but doesn't show the image clicked, instead it just shows the title of the image ...
0
votes
0answers
20 views

Ouput rel attribute on links in Gallery Shortcode within template file

I've added a gallery into a template file using echo do_shortcode('[gallery link="file" ids="1,2,3,4,5"]' ); When I use just the shortcode within a post I get a rel attribute on the links to the ...
0
votes
0answers
57 views

Make “Add Media” button lead to “Upload” tab instead of “Gallery” by defaut

Whenever I upload a media to wordpress, I have to click the Add Media button, switch to the Upload Tab, then select my file. Is there a way to make the Upload tab the default tab for the media ...
3
votes
3answers
1k 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
0answers
61 views

show title attributes above gallery thumbnail

I'm using the wordpress gallery to generate a list of thumbnails each with captions. However i would also, on some occasions, like to add the ability to have individual titles for certain images. Im ...