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

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
6 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
440 views

Add select field to media uploader that adds a class to the image

I'm looking for a way to add a <select> menu to the media uploader that will have two options: normal image, which will do nothing, and profile image, which will add a CSS class to the image if ...
1
vote
2answers
3k views

Disable media library tab for non admins in uploader screen

I am developing a plugin in which i am required to allow front end users to upload media, which I am able to do. But I don't want to let them sneak into media library which comes as tab with uploader ...
0
votes
1answer
19 views

Attachments plugin cannot click media library button [on hold]

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 ...
1
vote
1answer
15 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
0answers
32 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
28 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
13 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
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 ...
2
votes
1answer
880 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 ...
0
votes
1answer
16 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
22 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 ...
2
votes
2answers
2k 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 ...
3
votes
3answers
2k views

How to track hits of a single media file?

I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, ...
0
votes
0answers
21 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 ...
0
votes
1answer
4k views

Getting blank thumbnails in media library?

I run a Multisite installation with 10 blogs. All the other blogs work fine except for one where any image that's uploaded does not show up in the media library. There's just a blank image instead of ...
0
votes
1answer
24 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
25 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
18 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 ...
0
votes
2answers
310 views

Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser

I have an image that I've uploaded through the WP media library. I can see this image in my uploads folder via ssh/ftp. I cannot see this image if I put the URL in my browser, like ...
0
votes
1answer
82 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( ...
2
votes
2answers
696 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 ...
3
votes
1answer
476 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 ...
5
votes
1answer
87 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 ...
7
votes
2answers
2k 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
0answers
38 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
14 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 = ...
4
votes
0answers
104 views

Uploaded images don't show in Media Library if there are special characters in IPTC Keywords

Some images that are uploaded to WordPress don't show up in the Media Library. The images get uploaded and even cropped to the defined sizes, there is an entry in the Media Library, but the preview ...
27
votes
7answers
10k 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 ...
-2
votes
1answer
22 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, ...
0
votes
0answers
12 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
1
vote
1answer
49 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
11 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 ...
4
votes
1answer
1k views

Import media to online WordPress from local development

I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
0
votes
1answer
94 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
79 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 ...
3
votes
2answers
477 views

Add Image Dimensions to Media Library Tab on Media Upoader

I would like to add the dimensions of each image to the media library tab in the media uploader. I have a multi-author website, where I require users to add a featured image with minimum dimensions. ...
0
votes
0answers
22 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 ...
6
votes
5answers
8k views

Upload images to remote server

I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
0
votes
0answers
16 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 ...
1
vote
2answers
223 views

How can I add an Author filter to the Media Library?

By default the WordPress Media Library allows you to filter results by their type or date. How can I add a third drop down to list and filter by author? Currently we have this: I'd like to have ...
0
votes
2answers
1k 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 ...
2
votes
1answer
3k 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 ...
0
votes
0answers
45 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
21 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
31 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
24 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 ...
0
votes
0answers
64 views

How to open the Attachment Editor frame in the WordPress media modal?

I am building a plugin that uses wp.media to launch a modal where the user can select multiple images to add to a gallery. There are many tutorials that explain this process and I managed to ...
1
vote
1answer
48 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 ...