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

-1
votes
1answer
56 views

All the Images in Media Library is showing broken links

The problem which i am Facing is that images in media library and in the front of the website is showing broken links. The fact that is even if i upload new images from admin that is also showing ...
0
votes
0answers
8 views

Widget: File Upload not showing save option

I build widget for uploading files ( pdf, jpg, etc ). Fallowing by some guides from web. There is one problem: after uploading file from media library i dont have the save option enabled in my ...
0
votes
0answers
28 views

Wordpress media in different folders

How can I have my media files in different folders in wordpress? It just only use one folder for all media which make it hard to manage them.
0
votes
1answer
146 views

Organizing the Media Library for Cleanup

I am an avid WordPress(.org version) user, and I just got tasked with the job or sorting/deleting 502 items from the Media Library. I want to find all of the documents (they are PDF, Word, PPT, etc. ...
0
votes
0answers
20 views

Creating a metabox with media uploader for flexsilder gallery

I am trying to come up with a way to create a metabox on the post admin pages under the Wysiwyg editor in WordPress to allow me to use the WordPress media uploader. So, the goal is to have a metabox ...
0
votes
1answer
31 views

How to how to open the add media dialogue it in a certain state / tab

I created a customized wp_view similar to embed (see wp-includes/js/mce-view.js, l. 868). I also have my own tab in the "add media" dialog. Naturally i want the edit button of my wp_view opening the ...
0
votes
1answer
23 views

Save Custom Meta Value on Media Upload

I am looking for an option where a custom meta value will be saved when user uploads an attachment. Lets say I need a meta key _example_meta_key and want to save meta value of this as ex087659bh (It ...
3
votes
1answer
97 views

Remove upload_files capability from a role but allow role to manage an avatar image

I have a site with 1 admin, 11 editors, and 4000+ authors. I need to prevent the authors from adding media to the server and using up all the storage. Initially I tried function ...
4
votes
2answers
129 views

get total number of images from media using xml-rpc

I have large number of images in media library so I am accessing images in chunks via pagination in my Ruby on Rails application. I pass page number and offset to wp.getMediaLibrary API and it returns ...
1
vote
1answer
53 views

How to set post_id to 0 when you upload image via Add media button. (async-upload.php)

How to set post_id to 0 when you upload image via Add media button which will make a requtest to async-upload.php Instead of actual post_id? Thank you.
1
vote
1answer
198 views

How to show all available images in WP's media library when using the Polylang plugin?

It seems that depending on which default language I've set Polylang to, all my uplaoded images are isolated so that I can only pick them when I'm editing posts in the default language. I have a lot ...
0
votes
1answer
128 views

Allow author to upload image via Media button without plugin

I believe as default WordPress won't allow author to upload image via Media button on TinyMCE. It will give you You don't have permission to attach files to this post. error message if you do. I'm ...
0
votes
1answer
44 views

how to get the title, description, pictures on the page?

I created a template, but it does not output anything <?php /* Template Name: Gallery */ get_header(); ?> <section> <div class="row"> <div class="container"> ...
3
votes
1answer
53 views

Ignore a filter on the media library

As per my question yesterday, I need to exclude all images from most of my WordPress queries - yesterday, I thought I needed to exclude them from all queries, until I came upon the following issue. ...
0
votes
0answers
37 views

Call to undefined function wp_attachment_is()

I was trying to uploading PDF from Media, it shows HTTP error. in error_logs it shows PHP Fatal error: Call to undefined function wp_attachment_is() WordPress 4.3.1 I have tried below answers ...
0
votes
0answers
61 views

Display ID for Media Library items in list view?

When a user goes to Media -> Library they are presented with a table of all the uploaded files. I want to know how to add a col for the unique ID of these files. I'm thinking of the unique ID that is ...
0
votes
0answers
12 views

Organize Media Files on Category basis

I've just started learning the WordPress CMS, i have a small PHP programming background and i wanted to masters in WordPress now. for the learning sake, i have started a project on my local server, ...
0
votes
1answer
88 views

Removing delete permanently button in uploading files media

How do I delete or remove the word Delete Permanently in uploading files? I wanted to remove this permanently so that the users won't keep deleting files which are not supposed to delete. I use ...
0
votes
0answers
51 views

Media library view for custom post type

Someone know a way to display , in wp-admin , a custom post type like the media library ? I can do it creating an admin page with custom content but i want to override the default admin ui for my post ...
0
votes
1answer
51 views

is there any hooks or action to fire function of insert into post in media library?

I am seeking for help to find the action or hook in order to fire function insert into post in media library. I did create a new tab for my videos and would like to insert my converted video by ...
0
votes
0answers
42 views

Media uploader - error in my theme

When I try to upload an image using the image uploader in my theme I get the message 'An error occurred in the upload. Please try again later.'. When I switch to the twentyfifteen theme, I can see ...
0
votes
1answer
18 views

Wordpress not using edited image

I have uploaded a picture to media library and cropped the image in wordpress editor but when selecting the edited image http://mariehelenesund.se/wp-content/uploads/2015/11/Kicki-e1447542665309.jpg ...
1
vote
0answers
54 views

Image editing: “Edit Original” and “Replace” buttons missing on old posts

I have a site I've recently migrated to a new server. Everything is mostly looking okay, except on existing posts: when we go back to edit a post, and edit media attachments within it, the "Edit ...
0
votes
0answers
39 views

Upload image not working

I uploaded an image in wp-admin Media > Library. The image was saved as upload/2015/11/image.png, and is accessible from /wp-content/upload/2015/11/image.png, but it does not appear in Media > ...
0
votes
0answers
21 views

Can anybody explain why this js value is set at 10 in this media library source?

I'm using Mike Jolly's media uploader plugin on one of my Wordpress plugins which opens the media library as a shortened popup. Generally it works, but line 4 of the main code includes the following ...
0
votes
0answers
85 views

Unrecognized image file after upload

I'm creating an iOS application using AFMultipartFormData AFNetworking to upload an image onto Wordpress site. On the Wordpress server side, the following data was received when I echoed $_FILES: ...
0
votes
0answers
27 views

Select multiple images in Media library on touch devices

Is there a way to select multiple uploaded images in the Media library in WordPress on touch devices (like on non-touch devices with shift or cmd/ctrl)?
3
votes
1answer
163 views

Refresh wp.media after ajax call

I'm building a plugin where i add a tab to the media manager and can add stuff from another source. I add the tab with this, which generates a iframe; add_filter('media_upload_tabs', ...
2
votes
1answer
18 views

Prevent users from browsing through the media galleries

I just realized that when I go to http://www.detroitjewishdirectory.com/event/chanukah-wonderland/chanukah-2014-activities/ I am able to browse through a lot of the images that are in my media folder. ...
0
votes
2answers
49 views

Replacing Images in Media Library

I have a media library containing 500 images. I need to make some modifications to these images in Photoshop (batch resizing and color correction). I'm looking for a way to simply overwrite the files ...
0
votes
1answer
165 views

Wordpress media upload “HTTP error”

When I try to upload an image, I get the following error: HTTP error. I know this problem has been solved hundred times but I can't find the right answer form my configuration. In the php.ini, I ...
0
votes
0answers
94 views

How to upload iPhone 6s photos using native WordPress app?

I used to have an iPhone 4s and used the WordPress app to upload photos to my blog. I just got a new iPhone 6s, and the camera has much better resolution. When I try to upload an image using the app, ...
0
votes
0answers
50 views

Change view and refresh wp.media

I'm building a plugin which adds a new media tab. In this tab i display an iframe in which i can select images from another source and upload them to wordpress (using ajax). This works just fine, the ...
1
vote
2answers
41 views

Why do I sometimes get an attachment id string instead of a url from an image's guid field in the post table?

If I do a query of the post table for post type 'attachment' sometimes the guid field will contain an attachment id, "http://sitename.com/?attachment_id=1201", instead of a URL. How can I convert a ...
0
votes
0answers
25 views

How to properly extend WordPress media library?

I'm looking for a way/example to properly extend the WordPress Media Library. A good example of a plugin already doing this is Remote Medias Lite. I want the user to be able to select from custom ...
0
votes
1answer
22 views

Retrieve ONLY mp3s and set a variable for use in a playlist called by single.php template?

I'm trying to stuff a variable called $work_ids with the ID of any attached MP3 files for use in a custom player (based on MediaElement.js if that matters). The library contains WAV and other versions ...
1
vote
0answers
29 views

Media gallery thumbnails 1px

So I exported/imported images from one site to another (don't even want to get into the headache that has been causing!!) The latest issue is that it appears that all of my images have copied over ...
1
vote
0answers
59 views

Custom dropdown field added to media gallery; how to get it to save properly?

I am using the following code to add a couple of custom fields to media attachments: //Add custom fields for attachments function kgal_add_custom_fields_to_artwork( $form_fields, $post ) { ...
5
votes
1answer
247 views

How to get the image EXIF date/time and use it for the WP post date/time

I currently have the following working function. add_action('add_attachment', 'create_post_from_image'); function create_post_from_image($id) { if (wp_attachment_is_image($id)) { $image = ...
0
votes
0answers
33 views

How to add custom thumbnail size to media library's display settings / size?

I have added a custom thumbnail size in the functions.php of my template like this: add_image_size( 'post_mainpic', 750, 250, array( 'center', 'center' ) ); Now I want to be able to select that ...
0
votes
0answers
27 views

wp.media delete attachment callback

I am trying to build a plugin, where you can see and manage the image attachments that belongs to page/post. So when the user clicks on an image, the wp.media modal pops up. Then if the user deletes ...
1
vote
0answers
82 views

Customize WordPress Media Manager - Media Window

Im trying to customize the wordpress media manager "add media" window to get it as simple as possible to use. So i want to disable/ hide the following fields/ functions because i dont need some or ...
0
votes
0answers
18 views

Intercept an image before it's uploaded to Media Library

I've got a WordPress website where I need to have some posts with gifs as thumbnails. After researching this topic a bit I realized that I have to intercept the gif before it's passed into Media ...
1
vote
0answers
42 views

Trying to add filename over image in Media Browser

My client wants to be able to see the filenames of his images in the media browser (not the media library, the browser when you are adding media to a post or page). I used this snippet to do that a ...
0
votes
1answer
44 views

Dynamically Insert Image Into Stylesheet

Let's say I have a banner image I want to act as a background cover. Users manually upload their image with the Media library, which then associates that image with the post (image is handled using ...
1
vote
2answers
266 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 ...
2
votes
1answer
135 views

Change the size of the image preview on the media edit page

I'd like to increase the size of the preview image on the media edit page. At the moment it's too small to accurately crop. ../wp-admin/post.php?post=2758&action=edit&image-editor
2
votes
2answers
113 views

Where do the favicons for Media Files come from

I have uploaded some PDFs to the Media Library. I cannot find a way to set the browser favicon for the PDF media files. Where does WordPress get the favicon from? Is there anyway to control the PDF ...
0
votes
1answer
143 views

Media Library doesn't allow uploads? Upload Directory

I just put up a WP 4.31 site. Most of the content was copied from a different WP site via FTP. All the stuff in wp-content: uploads, plugins,themes, etc. It all seemed to work as usual, and I've ...
0
votes
1answer
51 views

Wordpress lowers image quality

I am uploading to my site large images with media uplader and I want them to have 100% quality but wordpress reduces the quality. What should I do or what plugin to install to prevent this?