The tag has no usage guidance.

learn more… | top users | synonyms

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
0answers
6 views

ACF gallery hook?

When updating a gallery with a new image or deleting an image, is there a hook which gets called? With a standard image field there's add_filter('acf/update_value/type=image', 'my_acf_update_value', ...
4
votes
1answer
4k 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
91 views

Gallery images stored elsewhere (preferably Google Drive)

I host client galleries on my website using the standard WP gallery but the disk space costs a lot this way. I was wondering if there's a way to show pictures in a gallery that are loaded from ...
0
votes
0answers
16 views

Adding Image Gallery Metabox on Custom Post Type Wordpress

I have a custom post type, and I want the users to add multiple images or attachments aside from the featured image. I want to achieve something like this, I got this from the woocommerce products: ...
0
votes
0answers
25 views

2 different templates for 1 query

I have a working query with some custom meta fields (among others ACF Gallery field) which displays news on "News" page. I have also second page named "Gallery" which is quering posts by gallery ...
0
votes
0answers
11 views

Gallery using Foundation 5 Grid + Clearing

First i'm using Foundation 5 JointsWP theme. Found this link and Esa Rantanen code work's great but there's problem i found and can't fix. Using wordpress gallery creator i can select image size ...
0
votes
0answers
7 views

How to prevent collapsing image gallery?

When I publish new post with an image gallery everything works well but when I zoom out or in, in browser the spacing between images gets really distorted, on zoom out there is huge amount of white ...
0
votes
0answers
8 views

Render custom gallery fields

I'm trying to add a custom setting field to a gallery and render it as a class in the HTML. So far I have implemented this solution which works perfectly. Here is the working code: function ...
2
votes
1answer
623 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 ...
0
votes
0answers
5 views

Adding pagination into gallery shortcode

I'm tring to add pagination to [gallery] shortcode. I have a custom post type, name gallery. Added this code my funstions.php. It show images but pagination not working. What the reason can be? ...
0
votes
1answer
431 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
2answers
960 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
1answer
3k views

Customize the Wordpress Default Gallery Output

I want to customize the Wordpress default gallery so that it would format as something like this for each item: <dl class="gallery-item imgteaser"> <a rel="lightbox-cats" ...
0
votes
0answers
9 views

Add markup before and after WordPress Galleries

I've used functions before that completely customize the WordPress gallery output (e.g. Help with WP gallery function, wrap gallery in div). But I'd like to do something simpler and am wondering if ...
0
votes
4answers
625 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
1answer
18 views

How can I bulk import into galleries?

I have a large number of photo galleries in a database-driven site that I want to migrate into WordPress. I can get the metadata and associations out of the database. Is there a way to bulk import ...
0
votes
0answers
12 views

Remove caption from Wordpress gallery thumbnail grid

I have just installed Wordpress with default theme and I would like to create a gallery. I plan to have caption for each image, but I want it to only show on image popup, not on thumbnail grid as you ...
0
votes
1answer
15 views

Wordpress Gallery Thumbnail images look blurry

I am using the standard WP gallery, and it all looks great on the page until I have images with different sizes. I have resized al the images I could and set them to medium size display and those ...
4
votes
3answers
11k 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?
0
votes
0answers
4 views

Gallery attached to a post but outside it (my-post-url/my-gallery)

I want to create a post gallery related to a WordPress post, but outside it, for example: my-post-url -> Display my post. my-post-url/gallery -> Display my galelry.
1
vote
2answers
352 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
0answers
17 views

How to make the images in the Gallery unclickable?

How to make it? I am sending a part of *.php code of the Gallery, extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' ...
0
votes
1answer
17 views

Responsive Wordpress Gallery

I have been trying to make my Wordpress Gallery responsive with the help from another post: Making WordPress Gallery (.gallery-item) Responsive? I would also like the original 5-column gallery to ...
0
votes
1answer
1k 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
0answers
9 views

load each gallery image on new page

I am looking for a way to load each image in my gallery on new page like this, here when you click on next button new image loads but on new page, any plugin or ajax that I can use to achieve this? Or ...
0
votes
1answer
99 views

How to show a manageable list of images on a post?

I've created a custom post type called product. On my theme's product page, I want to be able to show a basic list of images (ul>li>a>img) on a sidebar like this (quickly googled :P): I ...
0
votes
0answers
54 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
1
vote
3answers
14k views

How do i add class=“fancybox” to the default gallery?

i tried this shortcode: [gallery class="fancybox" link="file" columns="5"] But the class="fancybox" isn't been added to the a href tag of each image. How can i add class="fancybox" to each a ...
1
vote
1answer
1k views

Wordpress grab first image from gallery

The WordPress gallery shortcode now looks like this: [gallery ids="3439,3440,3444,3443,3445,3453,3457,3458,3456,3461,3452,3468"] My problem is I have a summary page grabbing the first image of ...
0
votes
1answer
63 views

How to change gallery grid from 4 columns to 3 columns? [closed]

I'm using WordPress 4.2.2 running Gridsby Child theme (version:1.0.1436164618, latest update). I run my site locally using Xampp. My question: the Gridsby theme default homepage offers 4-column ...
0
votes
0answers
21 views

wp_get_attachment_link filter for not working for inserted images

I want to change the value of title attribute of attachment link of the image by caption. I am using following code. It works fine for the images in gallery. But when try to do this for the inserted ...
0
votes
1answer
23 views

How do i replace the title attribute of img tag with the image caption

Can i replace the title attribute of img tag generated by the the_content, with the caption of the image Means <img title="caption"> and not <img title="title">
0
votes
0answers
36 views

Grab Current URL & Add to Cart Woocommerce

I have been researching of a way to do this but have been unable to find an answer to my question. There are answers on there on how to grab the current URL etc but it is not the answer I was looking ...
1
vote
2answers
32 views

Unable to the get the gallery inserted between shortcodes

I am customizing this theme . I am using get_the_gallery() function to get the gallery from the custom post . I am able to do so, but when the gallery is inserted between the shortcodes... For eg: ...
3
votes
1answer
101 views

WP_Editor - Remove TinyMCE Toolbars

I've created a TinyMCE Editor in a Metabox and I'm trying to remove the toolbars. According to The Codex I should be able to pass it an array of options to override the default TinyMCE. Here's what I ...
0
votes
1answer
286 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
8 views

Have plugin handle specific images based on filename

I'm using Advanced Custom Fields on a Genesis-based website to generate some unique review-like fields at the bottom of posts. Multiple writers post content and use this field, but I want to have them ...
0
votes
0answers
14 views

How to allow “List View” for adding images to a post

I've looked around quite extensively for this, but can find neither discussions, code snippets nor plugins which deal with this issue. Basically, when you're on a post and want to either "insert ...
0
votes
0answers
32 views

Getting gallery and image detail URL in Photo Gallery plugin

I am migrating photo galleries from old gallery system to Photo gallery plugin. Because I need to make a HTTP 301 redirection from original URL (gallery and photo detail) to new URL in Photo Gallery ...
0
votes
0answers
19 views

Use bootstrap for wordpress gallery?

I am wondering if it is possible to rewrite the gallery shortcode output (default wp gallery) to use bootstrap responsive columns. WP gallery is not really working as the rest of my theme. I know it ...
0
votes
0answers
17 views

Theme development- photo gallery post type?

I am in the early stages of developing a theme and was looking at how to create a photo gallery post type where all of the images are contained in a slider which is inserted in place of a featured ...
0
votes
0answers
43 views

modify gallery shortcode to make it responsive

I'm trying to make the default WP gallery responsive. I copied the entire gallery shortcode into my functions file and did the remove_shortcode/add_shortcode. Found this post Making WordPress Gallery ...
0
votes
0answers
20 views

Howto put a photo gallery into bbpress topics?

Lots of searching haven't found a way to do this yet. Only the short-code is being displayed. I do have TinyMCE Advanced & "Add Media" button working in bbpress however. I'm using the latest ...
0
votes
0answers
31 views

Removing “featured image” & “create a gallery” in sidebar

I was wondering if it was possible to remove "featured image" & "create a gallery" in the sidebar inside the "add media" button on "add a new post" page on my wordpress? ...
0
votes
0answers
24 views

How modify gallery shortcode output for admin side

I've been modifying the gallery shortcode output, with remove_shortcode and add_shortcode function. Which works great for the front-end side. But in the admin side, when I edit some pages, the ...
0
votes
0answers
23 views

Client login area with gallery

I'm working on a website for my photography business, and I've been using smugmug's gallery management and sort of login tools (im a very tacky way) to give each client a login they could then use to ...
0
votes
0answers
17 views

Loop media by “uploaded By”?

I have a webpage that I want to display images that are uploaded by a certain author. In the backend if I look at media, each image has an 'Uploaded By' attribute, and then it says the authors name. ...
0
votes
1answer
41 views

Issue on Getting Images URL of the Post Gallery

I am trying to get the URL of the attached galley into the post on custom page layout called Gallery Page. I tried to use the code from Codex at This Page (get post gallery images). but I am not ...
0
votes
0answers
10 views

attchment id vs url

Hi guys so im working on a site and im using galleries to display images of products and I was wondering why do some images link like this: http://studioanise.com/?attachment_id=249 and display how I ...