Media Library is a WordPress panel that display all files you've uploaded. There you can add new files, attach files to posts and pages etc.

learn more… | top users | synonyms

0
votes
1answer
16 views

Adding fields to attachment - only shows when inserting new attachments

I'd like to add two custom text fields for image attachments to posts (images inserted into the content of a post). Second I'd also like to remote some of the default fields like caption and ...
1
vote
1answer
23 views

Is it possible to modify the media library admin screen?

I've been searching for a few hours now but I can't seem to find a solution to this. I'm developing a plugin and I'd like to be able to add custom text underneath the admin media library heading. I ...
0
votes
1answer
11 views

get_attached_file returns wrong path after changing media upload dir

I've changed the default WordPress media upload dir (http://example.com/wp-content/uploads) to (http://example.com/uploads). Everything is OK and media files are uploading and showing correctly. But ...
0
votes
0answers
7 views

How to get the return value of wp.media({ frame: 'post' }) in all cases?

When the user is in an edit.php page or post-new.php, the wp.media global is available and I want to use it to open a special insertion view that allows videos. var frame = wp.media({ frame: '...
1
vote
1answer
19 views

How to get file URL from media library

I am attempting to copy a file from an external URL and then reference the local copy of the image via a WordPress shortcode. So far I have managed to copy the external image to the media library ...
0
votes
0answers
11 views

Remove Media tab from image uploader in backend

I am using advance custom fields plugin for creating custom fields in user profile. I only want user to only see upload tab and no "media library" tab. I am using the code: function ...
0
votes
0answers
10 views

Is there a media_upload_tabs-similar filter to add tabs to the simple/featured image picker?

There's something I have been wondering about the media_upload_tabs filter that lets you create new image insert sections to the add-media modal in Wordpress editor inserter. Oddly enough it seems it ...
1
vote
2answers
63 views

How to hide CPT files from media library programmatically

We have created a CPT which allows our customer to upload files from the admin page to a folder outside of the wp-content/uploads folder. Files are uploaded and manipulated using wp_handle_upload and ...
2
votes
1answer
32 views

How to disable Wordpress Media resize different size version?

When i upload to a media, Wordpress is resize it to many version like that 2016-04-03_23-36-35-90x65.png 2016-04-03_23-36-35-120x80.png 2016-04-03_23-36-35-360x240.png 2016-04-03_23-36-35-480x320....
1
vote
0answers
24 views

Wordpress Media frame pre load images from ids

Im using custom metabox button to create wp media frame with this code, var frame, selection, idsField = $('#_fills_ids'); frame = wp.media({ title: 'Select or Upload Media Of ...
2
votes
0answers
49 views

How to import 55k images (uploaded via FTP) into Wordpress Media libary? [closed]

I have got 55k images in my Wordpress Uploads folder which are not showing up in the Media Libary, how can I make them registered there ? I tried the plugin 'Add from Server' but there are to many ...
0
votes
1answer
11 views

Custom Media Meta fields to alter the generated image HTML that is inserted into a post for my animated GIF image player?

I want to add the capability to integrate a JavaScript animated GIF image player. It basically will load a cover image for the animated GIF on page load instead of downloading the larger animated ...
0
votes
2answers
41 views

uploading files to the uploads folder via ftp

What is the reason/s that the WordPress Media Folder, doesn't display images that were uploaded via FTP, directly to the uploads folder? Why doesn't WordPress "see" them? why do we always have to ...
0
votes
1answer
32 views

Consolidating two websites into one, but migrated images not appearing in Image Library

I am consolidating two websites (which are on the same server) into one. I copied the images from one website's directory to the other using rsync. rsync -av /srv/www/site1/wp-content/uploads/ /srv/...
3
votes
1answer
87 views

How to upload an image in the plugin's options page

My code is here.The other options working perfectly so how i can register the image and save the link in database and image in wp library. function register_team_show_case_setting() { //register ...
0
votes
1answer
22 views

Bulk Import files on Media Library from CSV

I have a list of more than 5000 files (pdf, doc, jpg ...) on an external server that I would like to upload my Wordpress media library. I would raise them with its corresponding title and description, ...
0
votes
0answers
24 views

How to upload thousands of images with folder tree?

Hi We need to upload meda from FTP and when choose image from add media there show foder tree for choose media. See the attached screenshot.
9
votes
0answers
299 views

Physical organization of wordpress media library (Real Media Library plugin)

Introduction. In the above screenshot you can see a folder structure built with premium plugin Real Media Library. Now i want to create an extension plugin which can organize the folder structure ...
1
vote
2answers
82 views

Bulk image rotation

I have just uploaded around 70 photos from Windows 10 into wordpress. While all of those photos in Windows are presented correctly Wordpress does not recognize their proper rotation. I may use ...
2
votes
0answers
15 views

Script won't execute in the media manager

I'm trying to execute a jquery script on the click of a button in a custom tab of the media manager, but it does not seem to work. I have been told this might be due to the button not being loaded ...
0
votes
0answers
23 views

Controlling visibility of files in the Media Library?

A part of the site I'm currently working on includes an expenses section where the user can upload expenses and attach files to them. This is currently achieved through a custom post type using an ACF ...
0
votes
0answers
9 views

Query Media Library For Posts Uploaded to Specific Page

Is it possible to query the media library for media files that were "uploaded to" a specific page? See the following screenshot. For example, I'd like to query all the media files uploaded to "...
1
vote
1answer
56 views

wp_enqueue_media() Will not load JS on the theme

I've added wp_enqueue_media() to a specific page (before including the header) on my custom theme but it flat out will not any of the JS on the page. I've already done the basic troubleshooting: ...
0
votes
1answer
24 views

Attachments plugin cannot click media library button [closed]

I have installed the Attachments plugin (version 3.5.7) to upload multiple images to a post in my post type 'shop'. The problem: For some reason I cannot click the insert button of the media library ...
0
votes
0answers
93 views

Uploading .mp3 files http error - 2 “exact” files one successful other fails

I have 2 equal .mp3 files - technically different files but both exported from Audacity using the same settings and the same original audio. Exactly the same size, same content (albeit processed ...
1
vote
1answer
44 views

Original image not saving?

When i'm uploading a picture, WordPress doesn't save the original image, just the thumbnails? That's why when i'm setting a featured image, the link is broken. Any help to to save the original image ...
0
votes
1answer
17 views

Wordpress Media Delete Logs

Is their a way to log when all media files get deleted? all user interaction and programmatically? I'm creating a Media Plugin logs for media that get deleted Or maybe a Hook of media delete.
0
votes
1answer
28 views

upload_max_filesize in .user.ini Not Reflected in Media Upload

I would like to know why Media Upload does not detect the upload_max_filesize that had been set in .user.ini file as shown below. max_execution_time = 10000 memory_limit = 512M upload_max_filesize = ...
0
votes
1answer
39 views

How to get the title of the random images from media library?

I am displaying random images in my homepage. My problem is, I can't get the title of the images to show in lightbox. Here are my codes. Codes that gets the images from the media library function ...
0
votes
0answers
37 views

Moving to godaddy managed wordpress hosting/media library

I'm trying to move a site to godaddy's managed wordpress hosting. Everything is working besides images/the media library. I have ensured that the values in the database match the actual relative/...
0
votes
1answer
31 views

What template is used for viewing Media Library Files?

I would like to create a special page template in my theme for viewing the media library files. Currently, when I click a Media Library image file I get a page template from the parent theme. Does ...
0
votes
0answers
35 views

Upload media Remote or Api

I couldn't find any accurate answers, therefore asking here. I have a website that runs multiple cron jobs in WordPress and generates posts from multiple resources with images and descriptions. I am ...
0
votes
0answers
51 views

Re-Index Media Library?

I do the maintenance for a webpage - the owner has posts which are from year 2014, with pictures uploaded to the folder wp-content/uploads/2014. The website was hosted on Blogger before and there was ...
5
votes
1answer
110 views

How can I speed up a slow loading media library?

My WordPress site is fairly large. It's being used as a blog and a CMS, with a WooCommerce shop running off it as well. There's probably over 2000 images in the media library at this stage. My ...
0
votes
0answers
60 views

link Google Drive to Wp Media Library

For space reasons, I need to my wp site to an external storage system such as Google Drive of DropBox. I have tried the Google plugin and the DropBox plugin. Both have very simple instructions which ...
1
vote
0answers
15 views

Intersept image upload and generate retina image from source

My goal is to make a retina and non-retina image when user uploads a photo. This is doable like so: add_action('init', function() { // Get the original image sizes and duplicate $thumb_w = ...
0
votes
1answer
89 views

Get post embedded image caption

I am trying to get the caption of post embedded images to then use on a lightbox. This is my code: function my_theme_prefix_content_gallery( $content ) { global $post; $args = array( ...
0
votes
0answers
16 views

wp.media mutliple file types

I want to show in library window all documents, which consists of pdf, doc, docx. It is possible to specify more parameters in library tag like library : { type : 'application/pdf'} Thanks
-2
votes
1answer
33 views

Store images and videos category wise and fetch them in json format

I am try to store images and videos category wise , I used "Enhanced Media Library" plugin to categorize media. Now I have to fetch media category wise and show in json format. I am using JSON API, ...
1
vote
1answer
116 views

How to output images as figure/figcaption

I'm trying to figure out how to output the WP images from the media uploader as Figure/Figcaption. Using the WP Twenty Sixteen theme the output is figure/figurecaption by default, and searching for ...
0
votes
0answers
15 views

Can't view Media Library (self hosted site) on Wordpress for iOS

I'm running out of ideas of where I can get help on this matter.. Basically I've been getting in touch with the support forums for Wordpress for iOS where I can't access the Media Library content on ...
0
votes
1answer
142 views

Too slow Image upload in Wordpress Media Library as image number increases

we are using Wordpress 4.4.2 and the Wordpress Media Library for media management. We have noticed that as media (images, not videos or audio) number increases, the upload process takes too long...and ...
0
votes
5answers
108 views

Cannot access the thumbnails of attachment images… Cannot find the reason

I have a custom form that allows users to make posts and also upload images with it. The images are saved in wp_posts as post_type = attachment with a guid to show the image. Now I have created a ...
0
votes
0answers
45 views

Migrating to HTTPS only, most media library links need updating?

I've been migrating customer WP installations to an SSL only server. For some reason some (but not all) of the media libraries seem to have gotten hard coded URLs involved. These are media objects ...
0
votes
0answers
18 views

images corrupted after install watermark plugin

I've a wordpress site, I want to install watermark plugin. after I install it and try it. my images in media library with Arabic file names got corrupted. I tried more than one plugin but the same ...
0
votes
0answers
55 views

Image file names with a space in them

I have a site that has lots of images that have spaces in them. I am not sure if the spaces got there because of how the old theme uploaded images or if it was the tool I used to migrate the site ...
0
votes
0answers
30 views

What filter is used for displaying grid thumbnail in media library?

I have developed a plugin to make WordPress upload images to CDN automatically. I have added filter to 'wp_get_attachment_url' so that CDN image url is correctly returned whenever WordPress is ...
0
votes
1answer
70 views

Proper way to hook wp_get_attachment_url or any other way to change that url in media library

I am trying to hook wp_get_attachment_url() with my custom implementation. I am trying to get my post videos and any other static data from the Amazon S3 and I was wondering if I can configure the URL ...
0
votes
1answer
28 views

Media items hogging pretty permalinks

I have a WordPress installation setup but I'm having trouble with items uploaded to the media library taking up pretty permalinks. The only way to fix it that I've figured out so far is to delete the ...
1
vote
1answer
83 views

Restrict role to view own media

There are plenty of solutions for limiting access to view your own uploaded media but I was wondering if it was possible to limit media to a user role ( e.g. author's can see all other author's media ...