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, ...
2
votes
0answers
26 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
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 ...
2
votes
2answers
113 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 ...
0
votes
0answers
25 views
+100

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
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
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 ...
0
votes
0answers
27 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 = ...
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
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
1answer
56 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 ...
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
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
51 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
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
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 ...
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
1answer
27 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
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. ...
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
76 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 = ...
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 ...
0
votes
0answers
29 views

Cropping image results in image being too small

This is the wordpress version 4.2 powell I crop 1500 x 1000 and then press on crop, then save. Resulting image size: 1497 x 1000 I don't know, I somehow hoped that wordpress is able to bloody ...
1
vote
0answers
27 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
0
votes
0answers
31 views

Media Library only shows media to the user who uploads it

My media library is only showing media from the user that uploaded it by default. I didn't do anything that I know of to make this happen. How do I make it so media in the library is available to ...
0
votes
0answers
31 views

Replace upload system/Override wp_handle_upload

I am going to be running a WP site on Heroku, and none of the current solutions for the media library fit my needs. There is a system for Amazon S3 (not using because paid), and a mapping system for ...
0
votes
1answer
77 views

Cant move file after media_handle_upload

i am trying to create an meta image uploader for a a custom post type with media_handle_upload() but it only returns an error teling me that it could not move the image to the folder ...
0
votes
1answer
140 views

Insert media while posting is not working with new wordpress update

Insert media while editing or adding post is not working since the 4.1.2 update. But I can upload media through media manager itself. I didn't change anything in the site today, only the automatic ...
0
votes
1answer
25 views

Moving wp from a server to another, with different administrator

Hi a friend had a website made by a guy, now he asked me to make him a new website but he want me to add all the post and pictures he had on the old one. The problem is that the guy that made him the ...
0
votes
1answer
125 views

PHP error when trying to upload .mp3 files via Media Library [closed]

When I'm trying to upload a sound file (mostly .mp3's) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such ...
1
vote
1answer
41 views

Sorting Media Library by Author Name

When attempting to sort my media library uploads by author's name, it appears that WordPress will only sort by author ID ( ...
0
votes
1answer
89 views

Media library images “missing” after migrating them using SQL

I am migrating a lot of posts from an old site to a new site, and these posts have a lot of Advanced Custom Field "relationship" data attached to them. Because of this, I want to keep all of the ids ...
0
votes
0answers
24 views

Cannot upload any image into wordpress after changing from multisite to single site

I have recently changed a site from multisite to single site by changing and commenting the parameters in the wp-config.php. After doing so I cannot upload any file into the media library. The upload ...
0
votes
1answer
52 views

Generating image sizes when uploading through wp.media

Finding documentation on wp.media is really tough, so bear with me. I'm creating a metabox to attach images to a custom post type. I'm able to get a media frame to open, have it accept uploads, and ...
0
votes
0answers
52 views

display media files under admin based on users and directory

A small description on Plugins used: I am using <a href="https://wordpress.org/plugins/media-file-manager-advanced/">Media File Manager Advanced Plugin </a> to organize my uploads ...
0
votes
0answers
33 views

Disable Media Library in Advanced Custom Fields

Ive posted on their forums but no one is answering. When you click "add file" on the field it opens up the Media Libary window, which isnt what i want to happen. id like for it to take them ...
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 ...
0
votes
1answer
98 views

How can I bulk delete media and attachments using WP-CLI?

I'm trying to mass delete 4000 images in a wordpress website. WP itself sets the max to 999, which would work fine and take a few minutes to delete them via the backend. However, I get REQUEST URI TOO ...
0
votes
0answers
56 views

How can I trigger the media library “query-attachments” action manually?

I'm working on a plugin that manipulates the WordPress 4.0+ Media Library. I see that the attachments in the media library are loaded by an ajax call using the query-attachments action. I need to ...
1
vote
0answers
54 views

Add media library tab

I'm trying to make a new tab in the media library. I have found the function add_media_page which helps me add a page in the media menu to the left. How ever, this menu is not always visible, for ...
1
vote
0answers
59 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
1
vote
0answers
143 views

Images dont show in grid view, but do in list view

In media library, images show in list view, but not in grid view. This becomes an issue because adding a featured image is done by grid view only. I had to edit the DB to make all jpg files lower ...