The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
19 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( ...
0
votes
1answer
28 views

Loading multiple slide galleries? [on hold]

I'm trying to create a site like this where users can click on a link and load that specific slide gallery. Can this be done with the built-in WordPress galleries? It's important that the client is ...
1
vote
1answer
38 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
10 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
25 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 ...
-1
votes
0answers
22 views

How to display image gallery on attachment page

I have a wordpress blog where I display a gallery of images (created with wordpress's internal gallery) in single posts. Each image from the gallery links to an/the attachment page (attachment.php). I ...
0
votes
1answer
18 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 ...
2
votes
1answer
38 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 ...
0
votes
1answer
63 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 ...
1
vote
1answer
22 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
1answer
50 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 ...
3
votes
0answers
52 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 ...
0
votes
1answer
32 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
51 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
15 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
21 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
1answer
20 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
30 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
2answers
26 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
20 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
14 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
37 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 ...
0
votes
2answers
231 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 ...
0
votes
0answers
44 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 ...
0
votes
0answers
37 views

Custom Gallery With Pagination/Navigation

With the help of someone I have created a custom gallery script, which picks all images with the slug x and presents them just fine, e.g. "people" (custom taxonomy). My problem is now, that I do not ...
1
vote
1answer
70 views

Override img class in gallery

I use Wordpress for AngularJS as backend (wp-json plugin ) and actually what I made as structure for the theme looks like myApptheme -style.css //nothing special here just inits the theme ...
0
votes
0answers
69 views

next_image_link Displaying All Images Attac

These codes can be used to get the next/previous image, but this code does not limit these images to the gallery. <?php previous_image_link( false, 'Previous' ); ?> <?php next_image_link( ...
0
votes
0answers
22 views

How to set Create Gallery -> Gallery Settings default to Media File

I created a Gallery in post: => Click Create a new gallery => Edit Gallery I have as picture: How to set default in Gallery Settings: to Media File. my default is: Attachment Page.
0
votes
1answer
45 views

Replacing an Image gallery

I posted this on the regular stackexchange site, but then realized that there was a wordpress specific site, so I'm reposting it here. I am trying to create a gallery within a custom post type I have ...
0
votes
0answers
35 views

Display all 'uploaded to' images for a page/post in 'edit' admin area

I'm using the Frontend Uploader plugin in order to allow people to allow images to posts. This allows images to be 'attached' to posts. I can display a gallery of all attached images on the frontend ...
0
votes
0answers
37 views

Automatically use image file names/titles as captions

I have lots of native wp galleries on my site and I would like to use the image file name as a caption on my thumbnails. Wordpress automatically uses the filename as the title but I'd like it to be ...
0
votes
1answer
33 views

Possibilities for customising the standard wordpress gallery?

I am a photographer with a Wordpress site so as you might imaging I need to show off my work in it's best light. I love the wordpress gallery because it creates great SEO due to the comments ...
0
votes
0answers
29 views

Get URL value from 'ATTACHMENT DISPLAY SETTINGS'

How do I get the URL from the 'ATTACHMENT DISPLAY SETTINGS' > 'LINK TO' secion of the media upload when listing attached images using the following code. <?php $args = ...
0
votes
0answers
61 views

I cant get archive-gallery.php for custom post types

Hi to all I have just created a gallery with the codes below: //---------------------------------------------- //----------register and label gallery post type ...
1
vote
0answers
62 views

Modify how gallery.js builds the shortcode [gallery …] in tinyMCE?

The post editor helpfully removes default arguments like columns="3" from the [gallery] shortcode. How do you tell it to remove a custom attribute that has a default value? The answer at Enhance ...
1
vote
0answers
112 views

How to run custom JavaScript code on gallery attachment image selection

On line 4620 of media.views.js is this: media.view.Attachment = media.View.extend({ ..... select: function( model, collection ) { ..... I would like to add some more features to this ...
0
votes
0answers
20 views

Manage Custom Gallery Shortcodes using Media Manager

I would like to create multiple gallery shortcodes (ie [gallery],[gallery-grid],[gallery-slider],[gallery-simple],etc.) I know how to create custom gallery shortcodes, but I was would like to use ...
0
votes
0answers
37 views

Custom wordpress media upload tab with the attachment browser

I've managed to add a new tab to the "Add Media" window with the help of this answer. Now I'm trying to add a custom gallery type in this tab. I'm trying to add the default attachment browser in this ...
1
vote
0answers
74 views

How to make a customized “Create Gallery” tab in the 'Add Media' window?

I'm developing a plug-in and wanting to make a customized version of the the "Create Gallery" tab of WP v4.0, but have the resulting output (i.e. what gets inserted into the TinyMCE editor) to be ...
0
votes
0answers
20 views

Getting attachments to a post to show in the order they are in the WYSIWYG editor

I am trying to get the images that are inserted into my gallery to show in the actual order that they are showing in the WYSIWYG editor. My code looks like this: <?php $args = array( ...
0
votes
0answers
107 views

Gallery random image sizes

I'm trying to get a masonry layout to work with the standard [gallery] shortcode. This is the code I have in my post-gallery (for the gallery post-format). echo '<div class="zephyr-gallery">'; ...
0
votes
0answers
46 views

Wordpress gallery shortcode - include author's images

I'm using the built-in wordpress gallery shortcode to display all images of a category -- documentation found here: Wordpress Gallery Shortcode Codex --- By using [gallery category="1"] How could ...
0
votes
0answers
27 views

How to display a custom built field on wordpress default gallery

I created a custom field for the media I can upload on my wordpress website, by adding this code to functions.php: /** * Adding a "Copyright" field to the media uploader $form_fields array */ ...
0
votes
1answer
92 views

Move captions under gallery images in twenty fourteen theme

The new twenty fourteen theme will only show captions on top of gallery thumbs. Is there something I can do in the functions (or copy from twenty ten) to make them visible all the time and show up ...
0
votes
1answer
94 views

Gallery shortcode menu order fix no longer working on Wordpress 4.0

I currently use the pmc_gallery_menu_order_fix for setting the menu order for image attachments in galleries as seen here: Wordpress 3.5 Gallery Menu Order not set? With Wordpress 4.0, I am now ...
1
vote
0answers
102 views

Wordpress 4.0 Media Gallery (Same Image) Bug - Does anyone know how to fix this? [closed]

So, we've been working on this site for a long time and have finally started finishing up. As a last cleanup we updated all our plugins and Wordpress to 4.0 and expected awesomeness. However, for ...
0
votes
1answer
100 views

CSS styling of native (inbuilt) wordpress thumbnails [closed]

I really hope someone will be able to help me with this as it should be really simple but I am struggling! I am working on the 'native' or inbuilt wordpress thumbnail gallery (not a plugin). I want ...
0
votes
0answers
138 views

Navigate through the gallery using keyboard arrows

What I am trying to do is navigate through a post gallery using the left and right arrow key. I am aware the key codes for these are e.keyCode == 37 and e.keyCode == 39 What will be the best way to ...
6
votes
2answers
281 views

Is it possible to query all posts that don't have an attachment?

I want to get a list of all posts that don't have an attachment and delete them. This question takes about getting all posts that have an attachment, but I want the reverse of it. The brute force ...
3
votes
1answer
274 views

How to add a “data-” attribute to the image tag of native gallery output

While trying to make WordPress and Galleria to become friends I already have a good result. Galleria can easily be used to display native WordPress Galleries. I'm using a plugin but that's not ...