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

3
votes
3answers
3k views

Add new “Insert Into Post” button with another function

Problem: Add a hook that automatically adds a short tag to video attachments when inserted from the Media Library (video) tab: Update: This works under the 'Media Library' tab — and doesn't break ...
3
votes
3answers
989 views

How can I attach images to a post from the media library?

Currently, there is no way to do this in a vanilla Wordpress install. Is there a way to retroactively attach an image from the Library to a post? EDIT: Ah, let me clarify — when editing a post, and ...
3
votes
2answers
398 views

Add Image Dimensions to Media Library Tab on Media Upoader

I would like to add the dimensions of each image to the media library tab in the media uploader. I have a multi-author website, where I require users to add a featured image with minimum dimensions. ...
3
votes
2answers
1k views

How can I list URLs of all audio files within my media gallery?

I have a music player in my theme that generates its playlist from a javascript file that looks like this var myPlaylist = [ { mp3:'track url goes here', title:'title here', ...
3
votes
1answer
3k views

How to upload images manually to wordpress?

I would like to know if it is possible to manually upload images to WordPress (ftp/scp) and make it recognize them and add them to the media browser. This also has to work with Wordpress running in ...
3
votes
3answers
10k views

Using WordPress as a document library

I would like to include a "resources" section in a new WordPress site I'm creating. I was looking for a document library plugin for WP, and amazingly, couldn't find anything that would work for the ...
3
votes
2answers
445 views

How to get the post editor and media library to respect HTTPS administration mode?

I have a site with FORCE_SSL_ADMIN turned on. When I'm editing a post with an embedded image, or when I'm viewing images through the media library, they are loaded using the http:// protocol rather ...
3
votes
3answers
296 views

Making the thumbnails in the backend Media section bigger

So I uploaded a lot of similar looking photos, and uploaded a duplicate or two. I go into the backend to the Media panel, but alas, each row has a small thumbnail, making it time consuming to figure ...
3
votes
2answers
2k views

Media library to list images only user uploaded

I want to list images for only user uploaded image. Here is the scenario: Using the image uploader on front end using iframe. I have added upload_files cap to subscriber level users and want them ...
3
votes
1answer
1k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
3
votes
2answers
718 views

How to force Media manager to overwrite files of same name?

I have a widget that works with my theme that expects images named in a certain way, slide1.png, slide2.png, etc... However, when the user uploads their own images, named slide1.png, slide2.png, etc ...
3
votes
1answer
1k views

How to save attachment data?

So I have this plugin which associates images from the media upload modal to taxonomy terms via /wp-admin/edit-tags.php. The current version is in the branch named "button". Basically, I've swapped ...
3
votes
1answer
17 views

Change text of Description in Image Library

i would like to change or add text to the Media Library Overlay on the right side if you click on an image and can enter a description for the image. At the moment there stands "Description" or ...
3
votes
1answer
56 views

What to do with unattached logos and header uploaded via native wordpress uploader?

Normally when we sort unattached images, they include logos and header images too. My question is simple. Is there any method to keep header and logos safe from deletion? Is it possible to attach ...
3
votes
1answer
161 views

Filter by post category in Media Library

I am trying to find a way to filter the Media Library by the Post Category that a Media item is assigned with. I can see that you can sort by "attached to" but this only get me a little of the way ...
3
votes
2answers
100 views

Register an additional image size for only some images in my media library

There is a type of post on my blog which requires one extremely large image (such that it can be zoomed). I don't want to register a new image size, because I only need a certain small subset of ...
3
votes
1answer
169 views

Wordpress 3.5 Media Manager - Reorder Selectbox items on Media Library Tab [duplicate]

The new media library is awesome but its a bit inefficient. When the page loads, it puts ALL MEDIA ITEMS as the default view. Which causes the page to load a LOT of images. I'd like it to default to ...
3
votes
1answer
219 views

Looking for a hook to add attachment information to the media library tab

I would like to be able to determine if an image has been attached to a post by looking at the collapsed viewmedia library tab. Is there's a hook I can use to add that data to this view of the Media ...
3
votes
2answers
437 views

add_image_size creating lots of images (of various sizes)

I wonder if its a good idea to use add_image_size or is it just a convinence feature. I say this as I think add_image_size creates images of various sizes regardless of what the usage if the image ...
3
votes
1answer
553 views

Custom post type thumbnail / Media Library WP_DEBUG notice [closed]

My custom post type thumbnail appears to be working correctly. However, when I return to edit one of my species profiles (in the Admin area, not talking about the front-end here), the following text ...
2
votes
4answers
1k views

Is there a user-facing interface to edit an attachment's permalink?

If you use the [gallery] tag at all you know that permalinks for image attachments end up like blog.com/2011/03/18/post-permalink/attachment-permalink. The URL extension from the post permalink ...
2
votes
1answer
451 views

Import media to online WordPress from local development

I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
2
votes
2answers
318 views

How to track hits of a single media file?

I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, ...
2
votes
4answers
3k views

Why can't I edit certain images from the WordPress Media library?

I've noticed some bizarre behaviour in my WordPress installation. For some photos, when I click "Edit Image", the full image is not displayed to me - just the area visible in the thumbnail. And yet, ...
2
votes
2answers
1k views

How to register images uploaded via FTP in media library?

I'm using my own upload.php file to upload images to: $upload_dir = wp_upload_dir(); $targetDir = $upload_dir['path'].'/'; It works like it should with this exception that images uploaded to ...
2
votes
2answers
3k views

How do I add media to a custom post type?

I want to add some custom fields to allow a user to select items from the Media library for the custom post (in the add/edit view) Is there a way to do this?
2
votes
2answers
251 views

Is it possible to trigger some JavaScript when Media Popup is opened?

On one of my custom posts edit page I have a button that triggers the media popup onclick, with: wp.media.editor.open(); and while it brings up the media manager I'm not sure if that's the proper way ...
2
votes
1answer
366 views

Hide custom image sizes from media library

I want to hide a few custom image sizes from the media uploader: The following code (posted here) works only for the default image sizes: function remove_image_sizes($sizes) { ...
2
votes
1answer
783 views

Saving Custom Field in Attachment Window in WordPress 3.5

I'm using the code below to add a custom text field in WP 3.5 Attachment Window (from this question # Expanding new Media Uploader in WordPress 3.5) ... add_filter( 'attachment_fields_to_edit', ...
2
votes
2answers
2k views

How can I hide media library images from general users?

As an admin I really like the features and functionality of the WordPress 3.5 media manager. With a multi-user site however all users can see all images in the media library - whether uploaded by ...
2
votes
1answer
142 views

How do I organize photos for multiple galleries?

I'm working on a site that will ultimately have dozens of photo galleries, each gallery with at least 3-4 photos, and possibly up to 20. Individual photos won't have captions, titles or any other ...
2
votes
1answer
1k views

How to enlarge thickbox media library iframe?

The iframe in thickbox media library is not big enough to display my custom tab. I tried to add "width=900&height=600" at the end of the link that pointing to the library, but no luck. How can I ...
2
votes
1answer
5k views

Function to get image from media library

Is it possible to retreive media image directly into the library... Something like get_media ('all') and it return a array with image url, caption, description etc etc..
2
votes
1answer
5k views

Restricting access to files within a specific folder [duplicate]

Possible Duplicate: How to Protect Uploads, if User is not Logged In? Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users ...
2
votes
1answer
2k views

Wordpress 3.0 Media Upload Directory

I am using Wordpress 3.0 and would like to organize the directory where uploads are made. Is there any way to change where the files get uploaded or is the only real organization the Media tag plugin? ...
2
votes
1answer
139 views

Adding Alt Attributes Automatically when Uploading Images to Media Library

I have lots of images that has to be uploaded via media library. I want to know, is it possible to add file name to alt attribute field automatically when I am uploading them? At the moment I have to ...
2
votes
1answer
158 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
117 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
46 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
209 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
231 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
301 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
26 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 ...
2
votes
0answers
40 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
1answer
66 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
88 views

Bridge Wordpress Media API with custom tinyMCE plugin

In my tinyMCE plugin, I would like to be able to call the Wordpress Media manager introduced in WP 3.5. I am currently working on a plugin that needs to fetch images from the library. I know we can ...
2
votes
1answer
92 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
158 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
104 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
256 views

Way to force media uploader use custom image size

I've implemented media uploader to my custom category image plugin and was wondering can I somehow force it use my custom image size I've set only for categories. ... So in screen shot above, I'd ...