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
0answers
8 views

Custom collection in media manager?

I'm working on a plugin that extends the media manager, load JSON based input data to render an own collection of images and may upload them to my wordpress media library. So far I got my own tab, ...
0
votes
1answer
128 views

Create a post from every image in my media gallery

I'm looking for a good way to create posts from every image in my media image gallery. I've uploaded about 200 pictures and want to create a post for each picture, where I set the picture as a ...
2
votes
0answers
23 views

Different upload path per file type

I want to have two different paths for different files. For example, I have all .zip and image files all in the same locations. What I am wanting to the have images in one path (eg. ...
0
votes
2answers
2k views

Create a User Role with permissions to only upload files to the media library?

Some of the employees at my organization need to be able to upload files to a folder and share a link with others. It’s primarily documents like pictures, pdf’s and Word documents. And instead of ...
2
votes
2answers
112 views

What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?

In the media tab, upload of a valid image file results in display of "HTTP error". Reload of the media tab shows that the image did upload and resize, though. Browser debug tools show that on ...
12
votes
1answer
16k views

How to add subfolders in media library for better organisation?

Right now I cannot create any subfolder e.g. reviews, news, interviews etc. I have a lot of images in my media library and it's messy. How can I create some folders and reorganize the images there?
3
votes
1answer
360 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 ...
0
votes
1answer
24 views

Which Hook? Hide attachments from specific post types in media library

as the title implies - I would like to suppress attachments of a specific post type(s) from showing up in the "Media Library" Not asking for a code example, but if someone can point me to the right ...
0
votes
0answers
13 views

Adding fields to the media uploader with jquery listeners

So I have the code to successfully add a select field to my media uploader (gallery view) which is cool, but I also need to add some jquery listeners to that field. I'm using the ...
0
votes
2answers
919 views

Insert wp gallery shortcode into custom textarea

Is there a way to insert wp gallery shortcode into custom metabox textarea ? I would like to have something like this: New metabox in post/page with textarea and below textarea there are a button to ...
0
votes
1answer
708 views

Update media file url in wordpress media library

Currently my videos are hosted within my wp installation. I want to move all videos to my new server. Currently, my media url are as follows http://mysite.com/wp-content/uploads/video01.mp4 I am ...
5
votes
1answer
427 views

Custom “Uploads” Dir: “Edit Image” in Media Library broken

Directory Structure I have customized my (local) install (dev box). The current directory structure is: ./root |- wp (WordPress Core root) \ |- wp-config.php |- wp-content (Content and ...
0
votes
0answers
13 views

Changing attachment status from inherit to pending?

I'm creating a web library that consists of about 1,000 PDF files uploaded as attachments (in addition to pages and posts which contain other information). I've bypassed the attach-to-a-page/post ...
0
votes
0answers
17 views

How to delete all images and image meta data attached to a certain post type?

I have a custom post type called books, I have 1000s of images attached to these posts in books using Advanced Custom Fields. How can I run a query to delete all of these images that are attached to ...
0
votes
0answers
10 views

Checkbox group on attachments page

I am trying to add check boxes on media page depending upon no of roles in the system and I have been able to do that like this. function add_custom_attachment_fields($form_fields, $post){ ...
0
votes
1answer
59 views

How to change compression of Wordpress uploads including original image

We are currently using this to change the compression used on jpgs when uploaded to the WP media library: add_filter(‘jpeg_quality’, function($arg){return 75;}); However, this does not compress the ...
0
votes
0answers
20 views

Issues with Wordpress 3.9.6 media libraries on XAMPP

I am having issues with the media library of Wordpress on my local Xampp installation of Wordpress 3.9.6. Uploading files to the media library takes a long time and occassionally fails. However ...
3
votes
3answers
67 views

Add class=“media_type” when media is inserted into editor

I am looking for a way to edit the link that get inserted in the editor when the user choose to add a media. The goal would be to add a class with the media type (pdf) in the link. I know how to get ...
0
votes
0answers
24 views

Accessing - Media - Attachment Display Settings - using wp.media

I'm trying to get options from - Attachment Display Settings - in my mg-media.js Trying to get selected size from user in mg-media.js. Here is, mg-media.js fn = wp.media.frames.fn = ...
1
vote
1answer
535 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 ...
1
vote
1answer
535 views

Javascript WP Object Documentation?

I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that ...
3
votes
1answer
80 views

Modify Custom Field in Media Library using JavaScript

I've added a custom field into my media attachments: function set_image_data( $form_fields, $post ) { $form_fields['text_color'] = array( 'label' => 'Text Color', 'input' ...
0
votes
1answer
55 views

Upload multiple image with media_handle_upload with multiple file field [duplicate]

I need to add multiple images with image descriptions form wp admin. Admin Form: <label for="image[]">Image</label> <input type="file" name="image[]"/> <label ...
0
votes
0answers
17 views

How to display the date a directory folder on ftp was modified

We have our site running on wordpress, but we upload all of our PDF files via FTP and NOT the WP media. I want to be able to display in a WP Page, the last time a file, or a "folder in the FTP ...
0
votes
1answer
21 views

image not found in media library

I've been inadvertently given the keys to a clients website. (I've redesigned an image for their WordPress site, and now they want me to swap the images out) Easy. Only the old image doesn't show up ...
0
votes
1answer
32 views

Media upload default title from file name

I'm on a roll today with the questions. Is this easy? Again, I can't seem to find the right filter (nor previous question with a suitable answer). So if you download an image say, from GettyImages, ...
1
vote
1answer
50 views

“Add Media” only shows “Full Size” under Attachment Display Settings

I can't seem to figure out why this dropdown is only showing "Full Size" as the option. I have the default "thumbnail", "medium", and "large" set in Settings, and I've also added a few custom sizes in ...
0
votes
0answers
32 views

Custom Post Gallery: Media Library / uploaded to this post

Gallery: Media Library / uploaded to this post I have custom posts I want to add a gallery to, but filtering the uploaded images using Media Library / uploaded to this post dropdown selection does ...
0
votes
1answer
2k views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
1answer
20 views

Changing titles in Uploader for “Posts”

When I click the "add media button" within the Visual Editor in the "Add a New Post" page in my blog, there are some titles I would like rename, http://puu.sh/ikJ9g/79e0cb4497.png I would like ...
0
votes
0answers
7 views

Invoke Wordpress' cropping tool in the front end

Is there a standard way to invoke Wordpress cropping tool in the front end? I'm asking about the one available in the media library on attachment page, when 'edit image' button is clicked.
0
votes
2answers
203 views

Remove Media File Items From Server That Do Not Exist in Media Library

Pretty much as the title suggests I have items on my server (images mostly) that do not feature anywhere in the media library. What is the best way to delete these? Is there a plugin or would I need ...
7
votes
1answer
169 views

Media library - Limit images to custom post type

Is there some wordpress magic/plugin that will make the media library only show images that were uploaded to a specific custom post type? I have a custom post type called "artists", I want, when admin ...
1
vote
1answer
801 views

Get attachments by user

Is there a way to get attachments by user? I need a way to display all the images uploaded by a specific user. (I probably need the attachment IDs so that I can use wp_get_attachment_url to display ...
0
votes
1answer
34 views

zip unzip attachments in wordpress

my client using easy digital download plugin for sell their photos. They upload a zip file that contain many photos and sell this zip file. My need is to extract this zip file and display the images ...
2
votes
2answers
4k 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
4answers
11k 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.
24
votes
6answers
9k views

Change the default-view of Media Library in 3.5?

When inserting media into a post, is there a way to change the default-view of the Media-Library from "All media items" to "Uploaded to this post"? There is another thread where this question was ...
0
votes
0answers
13 views

Provide New/Existing Users with Pre-Uploaded Media Images?

When a new user joins my site I want to give them the option of using pre-uploaded images. As of now, when they go to "add media" it's BLANK and they can only view files they upload. How can i ...
0
votes
0answers
17 views

What's the best way to index media ressources on a “Media Assests” page?

I'm trying to find the best way to index a collection of media ressources (PDFs, Videos and Photos) on a WP page. The simpliest quickest way, would be to manually insert all the selected media on a ...
0
votes
2answers
80 views

Issue removing Media Editor Tabs — Duplicate Items

I'm following the advice found in several places to remove tabs by using the following filter. However, the same number of tabs appear, the last one is simply displayed x number of times. I'm running ...
0
votes
1answer
25 views

Open media box library from link

I am developing a plugin in which I want to open media library box after clicking on a link from Admin Panel just like we do for Choose featured image. <a href="#">Choose Image</a> ...
0
votes
0answers
40 views

Upload folder permissions suddenly changed on all WP sites on same server

All my media linrary uploads were working until today when I tried uploading some pdf's and images to one of the WP sites on my server. I checked the other sites on same server and same thing ...
0
votes
1answer
5k views

Organize media uploads in folders - I have a physical access to (my) server

I'm very new to Wordpress. With the help of my friend I installed Wordpress on my server and finally we have our web online. However, I would like to upload some content in media library but I need to ...
0
votes
1answer
42 views

Delete Associated Media Upon Page / Post Deletion

I found this code. But not work for me. Where to insert the code? I try wp-content/theme/mytheme/functions.php - not work. wp-includes/post.php - not work. wp-includes/functions.php - not work. ...
7
votes
2answers
1k views

Delete Associated Media Upon Page Deletion

Note Use at your own risk, it is buggy and I have run across a couple instances where it would delete ALL attachments. Unsure why. Is it possible to delete media associated with a page when that ...
0
votes
1answer
15 views

Edit image itself

In the back end in media library when i edit image it allows me to edit almost every thing except the image it self or the image source, so how to change the image source without changing the id of it ...
0
votes
1answer
75 views

Get image URL from media library “insert from url”

I was trying to get the URL of the uploaded image via media uploader option "Insert from URL" I use and below code, It works for just for "Insert Media", var abc = wp.media.frames.abc = ...
4
votes
3answers
2k views

Uploading Images to Media Library via wp_handle_sideload() fails

My basic scenario is the following: I have a directory on my server that gets filled with images via ftp every once in a while. I would want to move these images to the wp upload directory and then ...
0
votes
0answers
16 views

Hook into media uploader screen

I'm trying to add some text to the "add media" popup and have been searching for a hook. However, I have been unable to find one. Do any exist? preferably, I would like to hook in to the area ...