The tag has no usage guidance.

learn more… | top users | synonyms

7
votes
2answers
6k views

How can I change Max Embed Size in WordPress 3.5?

after updating to WordPress 3.5 my automatic embeds are limited to a width of 500px, and the settings for this size have been removed with WordPress 3.5 Also, I can't find the Values in the ...
7
votes
1answer
1k views

Adding more options to the instance of an image. (Attachment Display Settings)

I'm trying to build a simple reusable plugin for image presentation in Wordpress 3.9, and it seems I've hit a brick wall. I would like to be able to add a couple of options to the instance of the ...
7
votes
1answer
369 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 class="...
5
votes
1answer
1k views

Modifying the media-template.php file, the right way?

The [gallery] shortcode accepts the columns='0' as an attribute so that it doesn't insert any breaks in the HTML between gallery items, however this option is not available in Gallery Settings ...
4
votes
1answer
105 views

How can I allow for multiple template views on the Gallery Settings page when using the Visual Editor?

I'm trying to extend this answer by making it possible to switch shortcode attributes from the UI and alter the gallery markup based on those attributes. [gallery owl="true" link="none" size="medium"...
4
votes
2answers
2k views

Different upload directory based on post type in a theme

I have a lot of uploaded image files and image sizes. So it would be better to organize media files into folders based on post type. I have just read this tutorial, but as I can see it works with ...
3
votes
0answers
123 views

Add control in image detail panel

I am trying to add a checkbox control in the image details popup (when editing image in a post). I have added the following code in my template function.php but I can't manage to display the checkbox ...
2
votes
1answer
316 views

Change default tab of media manager

Is there a way to change the default media manager tab? I have managed to remove everything that I didn't want to show in media manager, using the instructions from the first post here Add a menu item ...
2
votes
1answer
181 views

Resize the WP media Uploader iFrame

I'm trying to customize the look of the iframe that pops up (media uploader). I've manage to remove some fields etc, but I cannot re-size the frame. Does anybody know how to do this?
1
vote
1answer
2k views

Post type specific upload folder in 3.5

In 3.4 I used the following function to change image upload folder by post type. Different upload directory based on post type in a theme Now it doesn't work anymore in 3.5. Do you have any idea how ...
1
vote
1answer
204 views

Audio Playlist : How to bind events for “track change”, “track end”?

I'm customizing native Wordpress playlist echo do_shortcode('[playlist ids="3267,3266,821"]'); I'd like to bind events to detect "track change" and "track end" and do something when those events ...
1
vote
1answer
1k views

add_filter ( 'media_send_to_editor', …) does not work on wp 3.5

I have a problem with this -probably- abandoned plugin: <?php /* Plugin Name: RV Embed PDF Description: When you upload PDF and insert a link to it with the Add Media button, it will be ...
1
vote
1answer
133 views

How to set CORS header?

I have been accessing media images in a Ruby on Rails application via ajax from wordpress 4.2.4. I am getting following error while accessing the image via ajax. XMLHttpRequest cannot load http://...
1
vote
0answers
20 views

Altered media sizes (in dash), not updating to existing images/posts

(I have searched but not found a satisfying answer – bear with me). I have a client that has a website with 1500 posts. Each post consists of ONE image, no text. I have changed to the Oria theme (...
1
vote
0answers
59 views

wp.media add context

I have wp.media frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at ...
1
vote
2answers
155 views

Extra Alignment buttons on media uploader screen

I can not comment on an exciting question because my reputation is too low and when I reply inside that exciting topic it will get deleted because it's not a solution but another question so I start a ...
1
vote
1answer
255 views

Alter image meta fields in the Media Library

To improve user experience, I want to make changes to the image meta fields in the Media Library: As demonstrated above, I want to change the Caption field to Source and remove the Alt Text and ...
1
vote
1answer
299 views

Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?

Is there a way to make sure the "Media Library" tab does not show any images until I start uploading some in the "Upload Files" tab? I am creating a wp.media frame with the following code: var ...
1
vote
0answers
130 views

How to add custom meta box under Gallery Settings in the “Edit Gallery” popup

I am developing a theme. I want to add option for the user to choose the type of the gallery which he is adding. Will it be a slider, masonry gallery or some other type. I cannot figure it out how ...
1
vote
0answers
37 views

One step picture upload

Each time I upload an image by drag & drop in the Media uploader of Wordpress, I get the options window (text-align, alt, picture name etc...). The fact is I always use the default settings and ...
1
vote
1answer
133 views

media resize/crop possibilities?

Under admin panel -> media settings there are no minimal width option for thumb or other image modes ex: I would like to crop image widthout distortion -> height 124px and minimum-width 124px and ...
1
vote
2answers
478 views

Is it a good practice to change media settings on theme activation?

I want to change default image sizes when user activates my theme so that the default medium image width is exactly the width of page content (for pages with sidebar) and the large image size fits ...
1
vote
1answer
69 views

Wordpress returns old thumbnail size after changing media settings

I have had a requirement to update a WP build so that the thumbnail size changes from (the default) 150x150 to 500x500. I've amended the size within the Settings > Media and utilised the awesome "...
0
votes
2answers
226 views

How to change format of file link (<a url=“file_link”> Name </a>) when insert from media uploder

I want change some default wordpress functionality. From Media library when we select a file and press "Insert into page" (other than image file) It inserts in format <a url="file_link"> Name &...
0
votes
1answer
1k views

How do I control video media display sizing with native wordpress player

I was hoping to use the native wordpress video player, but I'd like to 'expand' the video size on the page. Is that possible? I can't seem to make this work. Actual MP4 video size = 640 x 360 ...
0
votes
1answer
266 views

WordPress not creating “large” thumbnails

I moved my WordPress installation from my local dev environment (MAMP) to a shared hosting server. Since then I have trouble with image uploads not being processes as before, especially with the large ...
0
votes
1answer
5k views

Recommended Media Size for Twenty Fourteen

is there a recommended media size for Thumbnail size in twenty fourteen? am trying to sort out my website so that it doesn't serve any resized media on the home page, most of the resized media are ...
0
votes
3answers
2k views

custom image size with New Media Manager in wordpress 3.5

The last update broke my workflow, as the method of using custom image size inside the media manager has definitely changed. i'm trying to add my previously registered image sizes to the new dropdown....
0
votes
0answers
66 views

Hide “Edit Image” from Attachments field

I am trying to hide the "Edit Image" link when I upload a picture to my wordpress site 'http://puu.sh/jAf0D/af831138c3.png' I have tried several methods, one being here None have seemed to worked, ...
0
votes
0answers
48 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? http://puu.sh/ikJ9g/...
0
votes
0answers
57 views

How to store and retrieve the attachment alignment?

I am working on a project, where I want to display all image attachments of a post. Getting the URL and size of the images is not a problem, since both get stored in the database, if the image gets ...
0
votes
0answers
235 views

Extract video content from post to display on front page

Well I know how to extract image from post.But what about videos?I want to show first video from post . <?php $args = array( 'tax_query' => array( array( 'taxonomy' => '...
0
votes
1answer
257 views

wordpress 3.6 media manager cropping timestamp

I am using wordpress 3.6 with its default media manager, I uploaded an image, and then every time i crop it, it create 3/4 new images in upload directory with different name (adding timestamp in ...
0
votes
2answers
29 views

Plugin or script to apply updated media settings to all featured images

I need to know if there exists a script or plugin that will add a button the "Settings > Media Settings" that will rebuild all thumbnails to match the current media size settings. The problem this ...
0
votes
1answer
349 views

Media Manager 3.5 custom options

I need to change the values and hide some of the default media manager Attachment Display settings. Like setting the "Link to" to none, and hiding it so that the registered user can't change it. It ...
0
votes
1answer
191 views

How i can upload images to another folder?

If I go in Dashboard -> Settings -> Media I don't see field where I can change upload folder. Is it possible now? For example my website is myblog.tld, by default all media content uploads into ...