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
14 views

What's the best way to index media ressources on a “Media Assests” page?

I'm trying to find the best way to index a collection of media ressources (PDFs, Videos and Photos) on a WP page. The simpliest quickest way, would be to manually insert all the selected media on a ...
0
votes
1answer
6 views

Open media box library from link

I am developing a plugin in which I want to open media library box after clicking on a link from Admin Panel just like we do for Choose featured image. <a href="#">Choose Image</a> ...
0
votes
0answers
20 views

Upload folder permissions suddenly changed on all WP sites on same server

All my media linrary uploads were working until today when I tried uploading some pdf's and images to one of the WP sites on my server. I checked the other sites on same server and same thing ...
0
votes
1answer
29 views

Delete Associated Media Upon Page / Post Deletion

I found this code. But not work for me. Where to insert the code? I try wp-content/theme/mytheme/functions.php - not work. wp-includes/post.php - not work. wp-includes/functions.php - not work. ...
0
votes
1answer
11 views

Edit image itself

In the back end in media library when i edit image it allows me to edit almost every thing except the image it self or the image source, so how to change the image source without changing the id of it ...
0
votes
1answer
12 views

Get image URL from media library “insert from url”

I was trying to get the URL of the uploaded image via media uploader option "Insert from URL" I use and below code, It works for just for "Insert Media", var abc = wp.media.frames.abc = ...
0
votes
0answers
3 views

Hook into media uploader screen

I'm trying to add some text to the "add media" popup and have been searching for a hook. However, I have been unable to find one. Do any exist? preferably, I would like to hook in to the area ...
0
votes
0answers
14 views

Cropping image results in image being too small

This is the wordpress version 4.2 powell I crop 1500 x 1000 and then press on crop, then save. Resulting image size: 1497 x 1000 I don't know, I somehow hoped that wordpress is able to bloody ...
1
vote
0answers
13 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
0
votes
0answers
16 views

Media Library only shows media to the user who uploads it

My media library is only showing media from the user that uploaded it by default. I didn't do anything that I know of to make this happen. How do I make it so media in the library is available to ...
0
votes
0answers
17 views

Replace upload system/Override wp_handle_upload

I am going to be running a WP site on Heroku, and none of the current solutions for the media library fit my needs. There is a system for Amazon S3 (not using because paid), and a mapping system for ...
0
votes
1answer
30 views

Cant move file after media_handle_upload

i am trying to create an meta image uploader for a a custom post type with media_handle_upload() but it only returns an error teling me that it could not move the image to the folder ...
0
votes
1answer
76 views

Insert media while posting is not working with new wordpress update

Insert media while editing or adding post is not working since the 4.1.2 update. But I can upload media through media manager itself. I didn't change anything in the site today, only the automatic ...
0
votes
1answer
23 views

Moving wp from a server to another, with different administrator

Hi a friend had a website made by a guy, now he asked me to make him a new website but he want me to add all the post and pictures he had on the old one. The problem is that the guy that made him the ...
0
votes
1answer
42 views

PHP error when trying to upload .mp3 files via Media Library [closed]

When I'm trying to upload a sound file (mostly .mp3's) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such ...
1
vote
1answer
26 views

Sorting Media Library by Author Name

When attempting to sort my media library uploads by author's name, it appears that WordPress will only sort by author ID ( ...
0
votes
1answer
32 views

Media library images “missing” after migrating them using SQL

I am migrating a lot of posts from an old site to a new site, and these posts have a lot of Advanced Custom Field "relationship" data attached to them. Because of this, I want to keep all of the ids ...
0
votes
0answers
18 views

Cannot upload any image into wordpress after changing from multisite to single site

I have recently changed a site from multisite to single site by changing and commenting the parameters in the wp-config.php. After doing so I cannot upload any file into the media library. The upload ...
0
votes
1answer
29 views

Generating image sizes when uploading through wp.media

Finding documentation on wp.media is really tough, so bear with me. I'm creating a metabox to attach images to a custom post type. I'm able to get a media frame to open, have it accept uploads, and ...
0
votes
0answers
28 views

display media files under admin based on users and directory

A small description on Plugins used: I am using <a href="https://wordpress.org/plugins/media-file-manager-advanced/">Media File Manager Advanced Plugin </a> to organize my uploads ...
0
votes
0answers
25 views

Disable Media Library in Advanced Custom Fields

Ive posted on their forums but no one is answering. When you click "add file" on the field it opens up the Media Libary window, which isnt what i want to happen. id like for it to take them ...
0
votes
0answers
16 views

link-to-custom value when inserting an image with jQyery

I have a dynamic media insert editor implemented using jQuery for dynamic fields. Using jQuery and the global wp object I can insert and grap data to then insert images into my dynamic fields. Using ...
0
votes
0answers
46 views

Media library - Limit images to custom post type

Is there some wordpress magic/plugin that will make the media library only show images that were uploaded to a specific custom post type? I have a custom post type called "artists", I want, when admin ...
0
votes
1answer
52 views

How can I bulk delete media and attachments using WP-CLI?

I'm trying to mass delete 4000 images in a wordpress website. WP itself sets the max to 999, which would work fine and take a few minutes to delete them via the backend. However, I get REQUEST URI TOO ...
0
votes
0answers
32 views

How can I trigger the media library “query-attachments” action manually?

I'm working on a plugin that manipulates the WordPress 4.0+ Media Library. I see that the attachments in the media library are loaded by an ajax call using the query-attachments action. I need to ...
1
vote
0answers
21 views

Add media library tab

I'm trying to make a new tab in the media library. I have found the function add_media_page which helps me add a page in the media menu to the left. How ever, this menu is not always visible, for ...
0
votes
0answers
32 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
0
votes
0answers
71 views

Images dont show in grid view, but do in list view

In media library, images show in list view, but not in grid view. This becomes an issue because adding a featured image is done by grid view only. I had to edit the DB to make all jpg files lower ...
0
votes
0answers
24 views

Restrict Media Library to one user except for admins

I have this function to restrict the media library to one user. However I have a few admins who need access to the whole library. How can I make all of it available for admins only ? /*restirct ...
0
votes
0answers
14 views

image carousel widget

Is there tutorial how to build widget where you can upload multiple images? I was trying to look some tutorials on widgets but to my surprise there are only few online. Or then my googling skills are ...
0
votes
1answer
20 views

When I'm in post editor and click on 'Add media', why won't it load the media library with this code?

add_action( 'admin_init', 'my_remove_menu_pages' ); function my_remove_menu_pages() { global $user_ID; if ( current_user_can( 'contributor' ) ) { remove_menu_page('tools.php'); // Tools ...
2
votes
1answer
46 views

Filter media library items by size

I want to prevent users from being able to set a Featured Image from the media library if its width is less than 100px. Originally I thought to use the ajax_query_attachments_args filter, but it ...
0
votes
0answers
171 views

Custom dropdown filter in media grid view

With the new grid mode in the media library the good old WP_List_Table specific restrict_manage_posts filter for adding custom filtering options is not available. All happens through JavaScript. I ...
0
votes
0answers
173 views

Wordpress does not detect all images in uploads folder?

I have about 500,000 images in the /uploads folder, but in Wordpress admin the media library only shows 10,000 images used (which is correct) and 10,000 unattached. In reality it's more like 490,000 ...
0
votes
1answer
58 views

Add Image Size for one Media Category Only

add_image_size is great, but if I want to create a swatch size for colors/patterns on my site, I don't need the swatch size for all of my other images. Is there any way to apply image size by media ...
0
votes
0answers
16 views

Uploading thousands of images easily from an existing album/subalbum structure into same

Having looked and not finding an answer, I'm asking the wizards. I'm creating a WP site with approx 1500 posts about heritage sites, sites of which I have tens of thousands of photos. I manage the ...
9
votes
1answer
233 views

How to display .ico files in the media library

I have added a .ico mime type into my WordPress site and I'm able to upload favicon files. But the media library only displays the default.png image for these images and also in the Customizer. How ...
1
vote
1answer
52 views

How to add 'Attachment Display Settings' in custom Media Library?

By default, when clicking on insert media and selecting an image, we get 'Attachment Display Settings'. I am creating a custom Media Library for a Custom Post using the following code: ...
0
votes
1answer
69 views

Media Manager: refresh library after new selection

I have created a custom field into a metabox with a button that opens up the media manager and allows the selection of multiple images. On the "open" event, the gallery retrieves the images IDS of the ...
0
votes
0answers
32 views

How to configure WordPress to create thumbnails

I was having a problem on a 3.8.0 install where thumbnails were not being created by WordPress. I thought it was the install, so I installed 3.9.2, not upgrade, but completely different install. And ...
1
vote
0answers
37 views

Extending Media Gallery - Retrieving values from short code

There are some existing questions that discuss how to add fields to the gallery dialog box and get those into the short code. What I want to be able to do is facilitate editing an existing short ...
0
votes
1answer
42 views

Open Media Uploader Link in single post or page

I want to open the media Upload Window like in a single post or page. It is important for me, to have that menu on top, which filters the media Library: This is my current code, which allows only ...
0
votes
0answers
14 views

Media Manager not creating thumbnails

I am working with the media manager in WP 3.8. For some reason, it is not creating thumbnails. The original image uploads just fine. Here is a list of things I've done or checked: The images I am ...
0
votes
1answer
35 views

Using the media library for theme customization

I'm using Underscores to build a theme and I've added an image selector to the customization section, which appears just like the default Background Image section, except clicking 'Select Image' ...
0
votes
1answer
128 views

Upload mobi and epub file in the MEDIA of WP

How can I upload mobi and epub files in the MEDIA of my WP site? I want customers to be able to download my ebooks in the epub and mobi version also, not just in PDF !!! I know there is an HTML code ...
0
votes
1answer
79 views

How to link a PDF file to a category URL

I am not sure if it is possible to do this but I have a category called case-studies into which I write individual posts to summarize a case-study - for the sake of this question let's give a title of ...
0
votes
1answer
24 views

My deleted media exists jet

I've a problem with my wordpress theme. I deleted some media files (some img) and it's appearing in my Media section (in my wp-admin) without thumbnail, but it's like the file exist. I'm looking in ...
1
vote
0answers
76 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
0
votes
0answers
41 views

Exclude some photos in media library

I was searching for filters to exclude some photos from media library. I have an array of image ID, and want them to exclude from media library any idea?
0
votes
0answers
131 views

Images On The Server But Not Showing Up in WordPress Multisite Media Gallery

I've had several different WordPress installations in the past. I've moved all of them into a single WordPress multisite install. Previously, there was one main site installed on example.org and then ...