The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 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
17 views

How to add an easily administrable photo slider? [on hold]

I want a post type to be just a photo slider, each one with a caption. I already coded a nice JS slider on my theme using get_attached_media('image'); since I don't want the editor to mess with ...
0
votes
1answer
22 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
13 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
17 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
23 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
80 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
12 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
19 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
47 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
9 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
39 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
25 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
23 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
27 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
52 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
83 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
62 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
51 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
229 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
135 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 ...
3
votes
3answers
277 views

Images Missing from built in WP Gallery

My wife has a wordpress 3.9.2 site that has a ton of images spread across many galleries. Many of those galleries though, have hundreds of images. This is partly managed by the Paginated Effects ...
2
votes
1answer
45 views

Set default link type to “file” for image galleries

Whenever you add a image gallery to a post, the images automatically link to the image attachment pages. This is not ideal, because I want to use Fancybox so the user can cycle through the images. I ...
1
vote
1answer
24 views

How to force Wordpress to add new images at the beginning of the gallery?

I have the standard gallery embedded in the page and want to add new images to it. When I select images and click Add to gallery button Wordpress adds them at the end. How to force it to add images ...
0
votes
0answers
37 views

Custom Field, add gallery id

Is it possible to add a gallery id like [gallery ids="9"] to custom field using the media editor in wordpress? I have attached a media function to a specific custom field but are not able to insert ...
0
votes
1answer
85 views

attachment.php & flexslider—linking thumbnail to specific image

I am nearly there but need the help of the community to bring me home! I am linking from a "gallery overview" page (thumbnail grid) to a single, full-size image page (attachment.php) containing a ...
0
votes
0answers
74 views

Remove Captions from Custom Gallery function.php

I like to prevent captions from being outputted in my custom gallery function. I could easily just hide it using CSS but it doesn't feel right. The caption is being sent from media.php this line. ...
0
votes
0answers
18 views

Change Wordpress Gallery Markup in functions.php

I'm looking to change the markup of the Wordpress Gallery, so that it outputs a new set of code. Ideally, this is what I want (a Bootstrap-based markup). <div class="col-md-3 col-sm-4"> ...
0
votes
1answer
28 views

How to Retrieve data of Gallery Shortcode and display it above a post

I'm trying to style my theme without resorting to custom fields. For gallery posts type, most premium themes are using custom field which is the method I used till now. With it, I could then retrieve ...
0
votes
0answers
11 views

Gallery preview on Post Format posts

I am trying to put a 2 picture preview of a gallery on each post that is the post format of 'gallery'. I managed to get all the thumbnails to show up in a post with: <?php echo ...
0
votes
1answer
89 views

How do display gallery embedded to the custom post type

I have a custom post 'events'. For each post there is a gallery attached. On a main galley page i am displaying featured images from each post . Now i want that when person clicks on this featured ...
-1
votes
1answer
42 views

Click thumbnail, change main image - NextGen or somethign else?

I'm trying to get the main image to change depending on the thumbnail image clicked. I would want the main image to take its new src from the a tag of the thumbnail that was clicked. Good example is ...
0
votes
0answers
38 views

3.9 Galleries & Thumbnails

I'm using WP 3.9.1 and have added a gallery (Add Media ->Create Gallery -> pick images -> Gallery Settings: Link to Media File.) That works, almost. The problem is that I need the gallery to use ...
0
votes
0answers
35 views

Gallery image archive page

I need to create an image gallery archive page. Actually I need something like where user will be able to create an image gallery with a few images and with a title through admin panel. The gallery ...
0
votes
1answer
26 views

Thumbnail gallery by date and taxonomy

I'm having problem to create something like image gallery. What I wanna do is, in the home page sidebar, there will be a box named photo gallery which will contain 2 or 4 images thumbnail (just like ...
0
votes
1answer
75 views

Changing admin Textarea to integrated WP editor

I'm currently working on a theme for my page that utilizes wordpress's built-in gallery system to make a slideshow with php/jquery. (Post->create new post->add media-> create gallery) Since by ...
0
votes
1answer
101 views

How to add 'data-caption' inside an anchor tag

bellow is custom gallery code. function custom_gallery_shortcode( $attr = array(), $content = '' ) { $attr['itemtag'] = "li"; $attr['icontag'] = ""; ...
0
votes
0answers
22 views

Linking Images to Post Page from Categorized Gallery

I used the code from this thread to create a plugin that automatically makes a gallery out of images attached to posts with certain categories. It works great, but now I want to make the images link ...
0
votes
0answers
23 views

How to create a gallery and integrate in first page

I want to create a gallery that display all images in the front page, but I don't want to use any plugin. I used the following code <?php /* The loop */ while ( have_posts() ) : ...
0
votes
0answers
61 views

WP 3.9 - default Media Manager

I need that in the admin edit page, when the user clicks on “add Media”, the default in the new frame will be “Create Gallery” and not “Insert Media”. I think, that the script for it is in the ...
0
votes
1answer
231 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
20 views

Featured image loads correctly while gallery images returns 404

I can't get why the featured image is loading correctly while those in the gallery returns a 404 if the links is to the attachment page. If i link to the file, the file is shown but if activate the ...
0
votes
1answer
47 views

How to Modify WordPress Default Image Gallery Shortcode

I would like to be able to show 5 columns and only 10 images per page for the default WordPress image gallery. Visually I would imagine it to look something like the following: columns="5" ...
0
votes
1answer
62 views

.htaccess RewriteBase equivalent for WordPress - Passing a URL as a variable without getting a 404

I have a page ran by a javascript plugin that changes the url every time a slide in a gallery is cycled. This means that while slide 1 is visible, the URL is http://www.sitename.com/gallery/slide1/ ...
0
votes
0answers
49 views

Open wordpress gallery onclick

I'm using Fancybox with wordpress' built in gallery to display the images on my site. This is working great. However - due to the layout of my site, it's not very clear that the one image displayed is ...
0
votes
1answer
64 views

Image Gallery links to medium image instead of FULL size image

I am a WordPress veteran and have built some really highly customized sites using WordPress as if it were a framework almost and I love it. I have not really ever had to use the Gallery feature to ...
0
votes
0answers
14 views

Pull next article on last page of gallery pagination

I am using ByREV Gallery Pagination Plugin found here: https://wordpress.org/plugins/byrev-gallery-pagination-for-wordpress/ I am attempting to redirect the user once they reach the last page of ...
0
votes
0answers
23 views

PhotoPress Gallery plugin cannot retrieve my photos after overriding the gallery output

I am using PhotoPress Gallery plugin and PhotoPress taxonomy by padams to create a gallery using terms and keywords on my Stock Photo site. It's working well until I decide to override the Gallery ...
0
votes
0answers
20 views

Organize Gallery by Event

I have a Gallery that Displays 9 images per Page regardless of event. So far, the Gallery has about 8 pages of images, with no organization. I'd like to organize the Gallery as follows: Gallery ...
0
votes
0answers
24 views

Wordpress API to get galleries?

Is there a way to get with wordress API the created galleries? The main idea would be to create galleries as normal wordpress pages or posts on and use those images in a wordpress widget.