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

1
vote
1answer
695 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
5
votes
4answers
2k views

How to hide media uploads by other users in the Media menu?

Simply put - how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to ...
1
vote
1answer
1k 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
383 views

Inserting a Download Link in the Quick Edit Actions of the Media Library?

What's the best way of doing this: On The 'Media Library' page, I would like a link next to 'View' (the 'View' that appears when you hover over a Media item) for 'Download'. The 'Download' hyperlink ...
1
vote
1answer
412 views

Share media among different domains

I have multiple Wordpress instances that live on separate domains (not a multisite installation). Since they provide the same content in different languages I'd like to share the images among these ...
0
votes
1answer
115 views

Images don't update after being edited

I have many pictures on my site and after posting for a while, I realized that I should have watermarked them. So I did just that, I downloaded all the images and watermarked them. I uploaded a few of ...
1
vote
2answers
712 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? ...
3
votes
2answers
711 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 ...
0
votes
1answer
567 views

WordPress image crop probems

i'm developing a portfolio theme on WordPress 3.2.1, so i created a new post_type called 'portfolio'. My aim is to show, on the front-end, a grid composed by the jobs i realized during last years. ...
0
votes
1answer
91 views

Windows Live Writer inconsistent with Media Library

I'm considering moving my existing blog from DasBlog to WordPress. While doing some tests to see if I did like the platform I ran into following problem: I'm using Windows Live Writer to write my ...
1
vote
1answer
476 views

change video icons to selected thumbnail?

added custom fields for the media edit form so users can select a thumbnail for video. All that's working fine but how can i get the default video icon on this page and in the media library to use ...
10
votes
4answers
2k views

Unwanted media library URLs in posts?

When doing a bit of Google searching for content on our blog, I noticed to my shock and horror that individual images from the Media Library are somehow generating their own URLs that Google is ...
0
votes
2answers
1k views

How do I remove the entire Media section from the main WordPress navigation without just hiding it?

I would like to remove the entire "Media" section from the main WordPress admin navigation ont he left hand side. What I don't want to do is just "hide" it with CSS or a plugin/function like I have ...
0
votes
1answer
218 views

All images on one line for each post

Having trouble getting around the issue where my client wants all of the images for each post to be on one line. This can be done in the editor, but they are not very tech savvy -- just wants to be ...
4
votes
0answers
1k views

Best plugin to manage media library? [closed]

I'm finding the media section of WordPress a bit hard to manage with it's paginated pages. Is there any plugin that helps display all the files differently? Like more images on one page and perhaps ...
1
vote
1answer
676 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
3answers
1k views

Control attachments menu order with jQuery Sortable

I've managed create a metabox that lets me upload and then fetch the images and then also been able to add jquery ui sortable to be able to sort the images, however I've no idea how to add actual ...
5
votes
2answers
3k views

Using the WordPress Media Library and returning the Attachment ID rather than URL?

I'm currently using some JS to pop open the WordPress Media Library in a thickbox container and return the URL of a selected image, then display it. window.send_to_editor = function(html) { ...
4
votes
0answers
281 views

Filter pictures in the media library [closed]

I have some issues with duplicated pictures in my media library and I would like to know if there is any option to show or automatically filter only certain images in the library. For instance, let's ...
0
votes
5answers
807 views

Errors in Add Image Popup, Media Library Tab: “in_array() expects parameter 2 to be array, null given in wp-includes/query.php”

I am getting errors like Warning: explode() expects parameter 2 to be string, array given in /data/www/ae/wp-includes/query.php on line 2390 Warning: in_array() expects parameter 2 to be array, null ...
3
votes
3answers
326 views

Downloadable Documents

I have Press Release Section on my page where i would like to be able to add documents pdf, ms doc's etc. Every time when i add new document to a post I would like download button to appear so user ...
1
vote
2answers
3k 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 ...
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 ...
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
497 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
404 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
433 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
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..
1
vote
1answer
824 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
1k 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
347 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 ...
10
votes
2answers
18k 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
556 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
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 ...
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 ...
6
votes
5answers
31k 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
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, ...
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 ...
3
votes
2answers
5k 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
425 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
754 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
301 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' ...
0
votes
3answers
6k 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
410 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 ...
0
votes
2answers
4k 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 ...