Media Library is a WordPress panel that display all files you've sent. There you can add ne files, attach files to posts and pages etc

learn more… | top users | synonyms

2
votes
1answer
195 views

Delete all associated media when custom post type removed

Basically I have so many images associated with custom post type that I need to be able to safely delete all related media on removal from trash. Is there a safe way of doing this?
2
votes
1answer
149 views

Checking if a file is already in the Media Library

I'm creating custom files in a plugin and adding them to the Media Library using the code provided in the Wordpress Codex for wp_insert_attachment. However, my plugin occasionally overwrites those ...
2
votes
1answer
49 views

can database and media folder be moved to a different drive?

I have to move my site from Drive C:\ to Drive E:\. Is there a better way to do this than uninstalling the following: Wordpress PHP MySQL Apache and re-installing on Drive E:\? For example, how ...
2
votes
1answer
263 views

Adding a querystring to an image URL when clicking 'insert into post'?

I have written a plugin which does some fancy stuff with GD lib when you upload an image. Everything is working fine, however I need to get the image title and add it to the image URL (and file name ...
2
votes
1answer
260 views

Is there a limit on the number of attachments?

It seems there's a limit on the number of attachments of a post? I have 265 images uploaded for one of the posts (yes, I know it's quite a few), and when I want to put them into order. The result: ...
2
votes
1answer
327 views

Best way to strip character entities (%20 etc)

I have a heap of images inside MovableType, on an old server. There are plenty which have character entities like %20 to represent spaces. I've used some plugins to import the images and change the ...
2
votes
0answers
110 views

Extend Media Library

The Media Library in WordPress has "Insert from URL" link to the left. It accepts image URLs. It's not said anywhere but if you paste YouTube URL or <iframe> code then it will insert it too. It ...
2
votes
0answers
59 views

Proper way to add a button to the top menu of the media library?

I want to add a simple button to the Media Library top menu (say, to the right of the bulk actions / filters dropdowns. I have scoured the WordPress codex for a proper way to do this and have found ...
2
votes
1answer
68 views

Is it possible to personalize the Media Library?

When we create a new post and click on Featured Image, I realize that WP creates a folder structure "year/month/image.jpg". I'd like to change that behavior to "category_of_the_post/image.jpg" (or ...
2
votes
0answers
176 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
125 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?
2
votes
0answers
159 views

How to add custom button to new media upload interface [duplicate]

I am developing a plugin and i want to add my own button to the wordpress media upload interface (WP version 3.5). Right next to the standard 'insert into page' button, i want my button to be there, ...
2
votes
1answer
119 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
2
votes
1answer
73 views

Display latest 12 images from media library

I was looking for almost a week for such solution - without success. What I want to achieve is have a kind of 'photos cloud' on my wordpress homepage. What I need to do is to display latest 12 photos ...
2
votes
1answer
230 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
2
votes
1answer
126 views

“Insert Into Post” For Custom Button

I'm in the process of trying to build a improved media library for our contributors. I have set up a custom taxonomy category for media, and set up a tab in the Add Media popup box for browsing ...
2
votes
2answers
73 views

How to have changes made in media library to be reflected on posts/pages

I have recently invested a bunch of hours updating the alt text of all the images in a media library, only to realise that the changes are not reflected on posts/pages. Whoops! Is there any way to ...
2
votes
2answers
630 views

Making the Add Media Link URL into a checkbox

Hopefully it's OK asking a second question pretty much directly after the first one... I'm currently having some difficulties accomplishing this: I've been able to remove the 'Attachment Post URL' ...
1
vote
2answers
604 views

How to get an image transferred via FTP or script to appear in Media Manager?

I've got a plugin that transfers some files over to the uploads folder of the site in which the plugin is installed. It works fine, however, the images are not appearing in the Media Manager. I ...
1
vote
4answers
1k views

Media Library page super slow, loading up full quality images

On my WP site (which sells retail products), I have large images (up to 4000x4000 px) so people can zoom in. Unfortunately, when adding images to a page and using the Media Library, the images all ...
1
vote
2answers
124 views

Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen

On the WordPress Edit Image Screen, I'd like to add a label to show the current compression level and byte file size of the image. Any ideas how to tap into this screen and echo this data? The ...
1
vote
2answers
1k views

How to Check Disk Space used by Media Library

Is there any way to find out how much of disk space has been used by Media Library? My blog's media files stored in a separate folder named "media" rather than the default "wp-content/uploads". ...
1
vote
1answer
568 views

3.5 Media Manager - callout in metaboxes

Two ways of doing the same thing: First one: var _custom_media = true, _orig_send_attachment = wp.media.editor.send.attachment; $('.media-upload-button').click(function(e) { var ...
1
vote
2answers
787 views

Add file name column to media library

I've migrated hosts for a WordPress site, and a lot of my images have the same title. I am trying to pinpoint one media file by the file name, but file name is not a column listed in Media Library. ...
1
vote
1answer
441 views

Is it possible to insert images directly from the server?

I've uploaded images directly to my WordPress server through FTP. I want to add these images to a post, so right now I'm using the Add from Server plugin that allows me to browse images on the server ...
1
vote
2answers
4k views

Add image to media library from URL in uploads directory

The plugin "Video Embed & Thumbnail Generator" does a great job of generating thumbnails from videos. It saves the thumbnail URL as metadata for the attachment. The thumbnail gets added to the ...
1
vote
2answers
1k views

Add size in Gallery Settings in Media Library

I would like to add the size in the Gallery Settings in the Add Media. I know to add the in the front-end by editing the media.php. However, when I added the the lines in gallery.dev.js, they don't ...
1
vote
1answer
830 views

display image size in media library screen

i'm trying to add image size in media library screen so will be simply to handle images. Anyone does it before me? Any help appreciated. Francesco
1
vote
2answers
897 views

Can I attach an image to a different post?

Image galleries display those images that were uploaded to that post, by default. If I wanted to move an image to a different post, so it appeared there instead, would I have to delete and re-upload? ...
1
vote
2answers
386 views

How to upload a media file via FTP and then create an attachment post with it?

I need to upload a very large video. I can not upload it via the built-in uploader since my upload_max_filesize is set to just 2M and I'm unable to override it (I've set the upload size to 50M and ...
1
vote
1answer
83 views

delete a photo tag in rtmedia [closed]

I am using rtmedia photo tag in my website. When deleting a user I am also trying to delete all the photo tags added by him on the albums of other users. How can I do that?. Is there any functions ...
1
vote
3answers
2k views

Add new media uploader at frontend for wp 3.5+

I create a form for user to submit content from the frontend. The only problem is I don't know how to handler the image upload. So, I want to know how to use the WP media uploader in the frontend. ...
1
vote
2answers
1k views

Image uploading stuck on “crunching”

I have a problem to upload images to the media library when is used multi-file uploader on WP 3.5.2. Single file media uploader works fine. I have tested it with 1k PNG image, which was stuck on ...
1
vote
2answers
199 views

How do I get allowed Media Library upload file extension list?

WordPress has list of allowed Media Library upload extensions in wp-includes/functions.php but is there any way to return them to theme's files as an array?
1
vote
1answer
531 views

How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page

This post shows how to remove unwanted fields from the media uploader. It works great, but I want to limit it to a custom-post-type and I can't seem to figure out how to do it. I've tried the ...
1
vote
1answer
719 views

How to retrieve alt attribute for an attachment (uploaded image)?

I have some IDs of attachments (images, not from current post). How to I get the alt attribute for those images? I have tried to look into wp_get_attachment_image_src and wp_get_attachment_metadata ...
1
vote
1answer
1k views

Image picker widget

I want to create a custom widget so the user can select 2 images from the media library via a dropdown box and display them in a sidebar. So I need the widget to display 2 drop downs, which each show ...
1
vote
1answer
2k views

media_sideload_image file name?

I'm using media_sideload_image to download images from the web and store them. However, the problem is that the ones from youtube are always called "hqdefault.jpg", which means that it will override ...
1
vote
1answer
843 views

Warning: in_array() expects parameter 2 to be array, null given

On a freshly built site running version 3.1.3 with the twentyten theme active and no plugins, when I click on "Media" to go the media manager, I'm getting this error: Warning: explode() expects ...
1
vote
2answers
4k views

Plugging into the Media Library to upload images (NOT associated with any post)

My Old Question: I made a Theme with rotating banner, common thing. So I want a way for users to select images. I think instead of implementing my own upload, I think its better to allow ...
1
vote
1answer
78 views

How to link to “most recent” document in the Media Library?

Our customer wants a "Latest Newsletter" type link on the homepage. I figured there'd be an easy way to specify a document from the media library (perhaps by name or title) but nothing is coming up ...
1
vote
1answer
757 views

WP 3.5 media uploader API set selected item

I know how to use the new media uploader in WP 3.5 and integrate it with plugins and themes but I have a problem, say the user selected the image and the frame closed I want when he open it again the ...
1
vote
1answer
273 views

Show how many images are attached to a post/page on compose page

On the front-end, I'm using a query to show all attachments attached to the current post. However, on the compose page, there's no way for a user to see how many images are attached without opening up ...
1
vote
1answer
183 views

How can I autopopulate titles in the media library?

I have hundreds of images in my media library, most have which have no titles. In the media library, the "(no title)" message is displayed along these images. Since I generally have one image per ...
1
vote
2answers
434 views

Taxonomies for Wordpress Media Library [duplicate]

Possible Duplicate: How it is possible to use taxonomies on attachments? I know this has been a long debated issue with WP, but I was hoping that since the 3.5 upgrade, there has been some ...
1
vote
1answer
269 views

Group images in media library

I'm looking for a method to group images in the media library. I'm developing a photo portfolio site. I have uploaded all the images to the media library I need a way to group the images to make them ...
1
vote
3answers
2k views

Import Images from one self-hosted WordPress install to another

I am redeveloping a client's site and, for a number of reasons, in the process changing hosts. I'm developing it on the new host and to get the site orgainised I have attempted to import all the pages ...
1
vote
1answer
106 views

Media Uploader in custom path

I am creating a CSS generator in my WordPress theme and I want to be able to save custom skins with images as well. My problem is that I have a hierarchy like /skins/custom-skin/images for the ...
1
vote
1answer
1k views

Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?

This code works for me if I go to upload a file and choose the Gallery or Media Library tabs then it correctly hides elements on the page. If I go to the From Computer or From URL tabs, nothing is ...
1
vote
1answer
1k views

How to display a custom post type's media library inline on meta box

I am trying to create a post type which only displays the Media Library Inline. I have got the example from this : https://gist.github.com/897503 However, nothing happens when I click "Insert ...