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
1answer
101 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
35 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
49 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
36 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
44 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
79 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
48 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
43 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
17 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
48 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
20 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
73 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
26 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
134 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
45 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
148 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
90 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
46 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
39 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
22 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
27 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
50 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
220 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
29 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
25 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
77 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
17 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
40 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
218 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
128 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
97 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
135 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?
0
votes
0answers
39 views

Reuse / extend the Backbone toggle mode in upload.php

The WordPress media library allows us to toggle between selection modes. I'm trying to bind the existing Backbone function for toggling between selection modes (bulk mode) to a button I added to the ...
0
votes
2answers
175 views

Hook into backbone to add js to wp-admin -> media library?

I've enqueued a .js file on the "Media Library" page (upload.php). I need to hide and manipulate a few of the thumbnails on the page using JS only ( I'm not looking for workarounds ). The elements ...
0
votes
2answers
38 views

Additional folder where will Media Library look for files

I have additional folder (images/) in wp-content/uploads/ directory to store theme images (I heard it is good practice to place them in upload directory) and I want Media Library to list this files ...
0
votes
0answers
10 views

How to block image loading in Media Library during upload?

One of the things that slows down my Media Library upload experience, is that all the already existing images are being loaded/displayed. For me that makes no sense, since I´m uploading and I don´t ...
1
vote
1answer
67 views

Site icons with alpha channel for self-hosted Wordpress blog network

Either I'm missing something (or have something badly configured in my self-hosted blog network) or when I'm uploading a transparent .png file (with alpha channel) using Media Library, my Wordpress ...
0
votes
0answers
102 views

Use Media Uploader in Widget

I am trying to use the Wordpress Media Uploader inside a Custom Widget. When I use a similar code for a custom meta box inside the post edit screen everything works fine, but on the widget site it ...
1
vote
1answer
23 views

Ignore dots when searching in the media library?

As the title says, is it possible to ignore dots in search field in media library?
0
votes
0answers
140 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
121 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
34 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
50 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 ...