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

“window.send_to_editor” only called in Wordpress thickbox/media-uploader if “insert into post” is clicked, not “save” button

I am using WordPress's media uploader by using the javascript: function handleMediaUpload(button) { //Enables returning the URL to input window.send_to_editor = function(html) { ...
1
vote
0answers
7 views

Media Library empty after server move (exact copy of files and db's)

After exactly copying both all the files and the database of a site over from an old server to a new one with the same URL (granted, DNS has not been switched over yet but not sure if that has any ...
1
vote
1answer
18 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
12 views

Link to a remote media library

I have been googling a lot about this issue and I cannot find a solution. I have an old website with a media library that is a bit over than 40Gb. In the meanwhile I have done a brand new one with a ...
0
votes
0answers
10 views

Custom menu item with tabs on media upload

I've been adding an extra link for inserting media in a post. The following url shows a sample code what I've used so far: https://gist.github.com/Fab1en/4586865 This is the result: But how do I ...
0
votes
0answers
6 views

Add tabs after Wordpress Media Manager 3.5 has already loaded

Does anybody know if it is possible to add tabs on the left-hand side of the media manager after the manager has already been loaded in Javascript. Is there a way to make an ajax call back to reload ...
0
votes
0answers
19 views

Reload or Refresh Wordpress 3.5 Media Manager

I was wondering if it is possible just to reload or refresh the new 3.5 Media Manager. I am currently running into a problem where I want to add new tabs dynamically but they are only added once I ...
0
votes
1answer
23 views

Wordpress ACF delete image from media library

I'm trying to use update_value filter hook of Advanced Custom Fields to write a function that when a user deletes an image from the field it will be deleted from the media library of WP as well. So ...
0
votes
0answers
13 views

resize from small images to large

I want to create large images though my original image is smaller. I have original images 1024x768 in my media library, and i want to resize these images to 1920x1080px in my WordPress posts. I ...
1
vote
0answers
17 views

Crop image with full width

Sometimes I need to crop images' heights in wordpress media library. When I try to crop the height it always decreases the width of cropped image by 2px. See the screenshot below. The original image ...
0
votes
0answers
25 views

File Not Found error returned when trying to access Media Library in Wordpress 4.2. Plugins cannot be installed either

Please help me figure out how to access my media files through the admin dashboard. All media files are present at the server level. I can upload a file through the admin dashboard, but cannot see ...
1
vote
1answer
18 views

Filter for Media Library

I want my users to apply a filter in Photoshop every time they upload an image. Naturally, people are forgetful so I want to remind them of that in the Media Library Screen. I search around which ...
0
votes
0answers
9 views

Render custom gallery fields

I'm trying to add a custom setting field to a gallery and render it as a class in the HTML. So far I have implemented this solution which works perfectly. Here is the working code: function ...
1
vote
2answers
44 views

Hide old attachments from wp media library

I am trying to limit the files that are shown in the wordpress media library popup (from wp_editor). Currently every single file that I have ever uploaded to my site is shown in the library but I ...
0
votes
0answers
34 views

Bulk Edit Media Including ACF/Custom Fields

I have two main questions but here's the scenario. I run a festival website. Photographers will upload photos to the site. They will need to relate it to an Artist and an Event, so when viewing the ...
0
votes
0answers
15 views

Remove caption from Wordpress gallery thumbnail grid

I have just installed Wordpress with default theme and I would like to create a gallery. I plan to have caption for each image, but I want it to only show on image popup, not on thumbnail grid as you ...
2
votes
0answers
17 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
1answer
43 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
30 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
158 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 ...
1
vote
1answer
98 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
0answers
17 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
26 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
13 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
24 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
39 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
80 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
60 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
161 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
18 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
116 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
22 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
37 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
70 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
51 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
22 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
9 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
42 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
15 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
45 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
44 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
47 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
118 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
22 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
30 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
31 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
36 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
45 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 ...