Articles of media library

How to extend Media Library (WP 4.4)

I am trying to implement a new tab next to Media Library. I couldn’t find solution to implement this. I found an example how to implement a new tab in this link: https://gist.github.com/Fab1en/4586865 However the tab doesn’t show up in the modal form triggered by Add Media button. But if I call the media popup […]

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/www/site2/wp-content/uploads/ The images appear in the target directory and file permissions and ownerships are fine. But the images are not appearing in the Media Library and […]

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: Deactivated all plugins (no go) changed themes to twenty sixteen, this time leaving all the plugins activated, and added wp_enqueue_media() function […]

Display image file size in media library

This wonderful answer to a related question; that of displaying dimensions in the media library. display image size in media library screen is it possible to use this technique to display the file size as a column? If so how?

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 upload via the WordPress media uploader? What does it do?

How to save custom fields for attachments

I have added a custom field “Buy Now” link on media edit page but I am not able to save that data like other post types. Is there any other hook which is triggered after add/edit/update media/attachment? I am using this function: function update_attachment_extra_info( $post_id ) { // code to update data } add_action( ‘save_post’, […]

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 thought there might be some hook to do this. Can’t seem to find anything that shows […]

Plugging into the Media Library to upload images (NOT associated with any post)

My Old Question: I made a Theme with rotating banner, common thing. So I want a way for users to select images. I think instead of implementing my own upload, I think its better to allow users to use the Media Library, how do I do that? The New One So far, I have something […]

Remove image from post also removes photo from media library

Is there a simple way that will remove a image from the post editor and the media library?

Warning: in_array() expects parameter 2 to be array, null given

On a freshly built site running version 3.1.3 with the twentyten theme active and no plugins, when I click on “Media” to go the media manager, I’m getting this error: Warning: explode() expects parameter 2 to be string, array given in C:\xampplite\htdocs\testsite\wp-includes\query.php on line 2390 Warning: in_array() expects parameter 2 to be array, null given […]