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

0
votes
1answer
1k views

Restrict file uploads by extension?

Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size? Bonus question: Can I limit users to only be able view files they have uploaded themselves?
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?
3
votes
2answers
4k views

Creating a metabox to upload multiple images, Ignoring The Featured Image

My question is basically identical to this other question here, however my question is still slightly different. I basically have a custom post type called "Packages" each package can have a slideshow ...
0
votes
1answer
543 views

Media library only show 2 items per page?

For some reason WordPress media manager is only showing 2 images per page? This is happening on 2 separate sites now and I can't get rid of it. Is there a way to manipulate items per page for the ...
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 ...
0
votes
2answers
415 views

Featured image for links and categories

Is there a ready plugin or solution for implementing Featured Image function to Categories and Links? At Pages and Posts I use the feature image as a background image, using the full size original ...
3
votes
2answers
472 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 ...
2
votes
1answer
6k 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..
1
vote
1answer
854 views

Custom “Insert into Post” button

I am trying to make a simple plugin that sets a background image. I have it linked to the media library so that when you click "Insert into Post" it does a custom function. However, obviously this ...
0
votes
2answers
2k views

media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation

I've asked a similar question before: How to create thumbnails with a fixed width, so all of them will have the same width? But... this one is related, but different. Please bear with me. Right now: ...
0
votes
1answer
362 views

How do you filter get_media_items by mime type in a custom media upload tab?

I've gotten as far as creating my new tab and getting it to show up and I've taken a copy of the gallery screen (I'm making an audio plugin with a playlist feature). The list of media items shows up ...
11
votes
2answers
25k views

Media Library plugins for better file management? [closed]

Is there any plugin to extend the basic functionality of the Media Library for websites with a lot of media content? A folder structure would be awesome...at the moment I am using the Media Tags ...
1
vote
2answers
628 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 ...
2
votes
4answers
2k 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 ...
3
votes
3answers
12k 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 ...
7
votes
5answers
38k views

Get All Images in Media Gallery?

Is there a way to fetch the URLs of ALL images in the media gallery? I think this would be an easy way for a website to have a Pictures page that just pulls all of the images from the media gallery, ...
2
votes
4answers
4k 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, ...
0
votes
1answer
1k views

Proper use of wp_get_attachment_image?

I have two images attached to a page. One is being used as the featured image, and I want the other to automatically be displayed at the designated spot in the template (within the loop) at full ...
4
votes
2answers
6k views

Why is wp_get_attachment_image_src not working with my custom size (add_image_size)

I have added an image size with add_image_size('gallery-thumb', 48, 48); Why when I do array_slice(wp_get_attachment_image_src($firstimg->ID, 'gallery-thumb')) I get the link to the full ...
0
votes
2answers
472 views

How can I paginate results from get_children

I followed this method of getting images from the media library. // get the first image attached to the current post function aldenta_get_post_image($size = 'thumbnail') { global $post; ...
1
vote
1answer
780 views

Uploaded images not displaying in network site

I have a network of sites and have recently added another site. When I upload an image it uploads to the correct directory but is showing a broken image link when viewed within the library or on the ...
0
votes
2answers
3k views

Get an image from the media library. Struggling with the code?

Struggling with this code, the conditions work, the only way I can get the wp_get_attachment_url is to loop through it but then this outputs as many images from the media library and I only want one? ...
0
votes
3answers
1k views

More Fields & Media Upload

I'm using the more types, more fields and more taxonomies plugins and they're beyond excellent. However, I've found that once I remove the main wysiwyg block I no longer have access to the media ...
0
votes
3answers
312 views

Get attachment if matches a variable

how do I match an image title from the media library to a variable then echo that image? this is my current code... <?php $args = array( 'post_type' => 'attachment', 'numberposts' ...
2
votes
3answers
9k views

how to download all media files into my computer

How do I "download" all my photos from my media library to my local computer? I can do this one at a time, but is there a way to grab them all at one time? Sort of like a "download all" process.
0
votes
1answer
437 views

How to bring files from the upload directory to the media gallery?

My wordpress theme creates thumbnails of media files that I upload into my posts. These thumbnails are not accessible inside the media gallery, they exist only in the media upload directory. I want ...
1
vote
2answers
5k views

How do I force Wordpress to show most recent version of images in the media library?

My workflow is sometimes the following: Delete many images from the media library at once (named for example, 01.jpg, 02.jpg, 03.jpg...). Re-upload a series of images with the same file names ...
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 ...
1
vote
1answer
605 views

How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?

I am attempting to resolve a problem I continue to have with the media library. Essentially, what I am looking to do is "automatically" assign media which is uploaded from a custom post type "edit ...
1
vote
1answer
4k views

Any way to change the actual filename of an image from media manager?

The default WP media manager does not appear to offer the ability to change an image's filename. Are there any plugins available that allow this functionality?
6
votes
1answer
18k views

How to use media upload on theme option page?

I want implement upload logo to my theme option page. Currently I follow this code What I have done for now load a related jquery for the media upload function load_only() { add_thickbox(); ...
1
vote
2answers
302 views

How can I view all WP generated thumbnails in Media Manager?

When WP creates thumbnails from the original uploaded image, they are hidden from view inside the Media Manager listing. Can they be made visible, via some filter or action so that you can selectively ...
0
votes
2answers
219 views

Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”

I want to wrap the filter below in a conditional that tests whether the user is uploading an image from the Media Manager (Admin > Media > Add New) and not from the post editor image upload routine. ...
0
votes
3answers
4k views

How can I stop WP media uploader from creating duplicates of my uploaded images?

I have a setting in my theme that seeks to prevent the WP media manager upload utility from creating multiple copies of each image I upload. Apparently the latest versions of WP have changed the ...
1
vote
1answer
3k views

I'm using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box

I'm using a very lightweight plugin called WPAlchemy that lets me rapidly create meta-boxes for posts and pages. I've ben able to convert <textarea>'s into rich, TinyMCE's editors just fine. ...
2
votes
1answer
7k 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? ...
3
votes
2answers
550 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 ...
0
votes
1answer
568 views

Duplicate Custom Header Functionality into the post edit screen

Within wordpress 3.0 you have the ability to create a custom header image with a very slick built in cropping tool. I found out that the code being utilized for this is located within ...
4
votes
3answers
1k views

Attach Files Metabox

Does anyone happen to know how to create a simple "attach/browse" button that can be placed into a metabox which upon clicking it would open a lightbox where the user would be able to view all the ...