A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [media-library]

Media Library is a WordPress panel that display all files you've uploaded. There you can add new files, attach files to posts and pages etc.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Post edit - Media Library - Only get images from current post

I've got a few ACF Image fields for posts And I want to only query the images in the media library browser already uploaded and used on the current post. In other words, when opening the media library ...
0
votes
0answers
12 views

Media Dialog CSS broken in WP v.5.3.2

My plugin displays the media picker dialog on the users front end. If a user has WordPress 5.2.2 installed then the media picker dialog looks nice/normal (see the first image). If they have WordPress ...
0
votes
1answer
11 views

Multiple image selection custom widget

I've created a swiper custom carousel as template part of a custom theme. I want to widgetize this component of the theme to have more control over the contents displayed. It's used as an horizontal ...
0
votes
1answer
30 views

Media library not working with wp_editor() on the front end

Very related: Add Media has stopped working in the front end since 4.5 update I want to run the wp_editor() function to load the classic WordPress editor on the Front-End. I need to do this out of ...
0
votes
1answer
23 views

allow non logged in user to upload images in media library

I have a website where I have a page that is accessible from any non logged in user . Its a form where I need to upload image through the form but when I try this its showing an error. But When I ...
0
votes
0answers
14 views

How can I view uploaded images in the Media Library?

I know that WordPress can upload images. However, I'm working on a site that will have thousands of images arranged in folders and subfolders, and I'd like to keep them organized. So I would like to ...
0
votes
0answers
3 views

Media library and Media Picker exclude specific upload subfolder media

I use some plugin to upload images into specific uploads subfolder. I want to exclude this subfolder media to being displayed in Media Library and Media Picker. For Media Picker I tried this filter, ...
0
votes
0answers
6 views

Video thumbnail in media library? Preview video in media selector?

When viewing the media library all the videos show the default icon for videos. No thumbnail for any videos. Is it possible to generate a thumbnail for every video? If I click a video in the media ...
0
votes
0answers
8 views

wp cli import media adding 10 files for each media files on disk. is it a bug?

I copied some files to my server; Then I ran: wp media import *.jpg Then in wordpress > media-library, there are 10 different sizes for each file, EACH size has its own entry in the media library. ...
0
votes
0answers
7 views

open media libray in custom widget

I've read a nice tutorial on how to implement the media libray to select or upload images as a background of a custom widget, but I have a problem, the media library will not open and I will get also ...
0
votes
0answers
7 views

Open media library from custom widget

I have made my first custom widget by following the guidelines of the theme handbook. It's not perfect but working nice, I have only some problems with the $args variable that was set on the ...
0
votes
0answers
223 views

Post-processing of the image failed

When uploading 8 pictures via Media, Add New, I get this error: Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again. ...
0
votes
0answers
35 views

Add tab on new media library

hello I am trying to add new tab to the media library uploader: My plugin currently only shows on the old wordpress media library: How do I add the tab to the select/upload media dialog? Here is the ...
0
votes
0answers
15 views

Set external URL as attachment source

I'm interested if it's possible to use the WP media library with external images as sources. Basically, I need the ability to add the images to the post (via meta field that stores the connected ...
1
vote
0answers
19 views

Media Library does not show the uploaded image

I am using a custom form to upload image and trying to move the file in the Media Library. The wp_insert_attachment() is working fine because I get the attachment id; however I don't see the image ...
0
votes
1answer
22 views

still need help-images inside wp-content/ uploads/ are not showing up in my media library and uploaded using FTP protocol

I'm having issues with being able to get to my image files inside the Media Library. I'm having issues, since I have transferred my WordPress website from my local server to the live environment. In ...
6
votes
2answers
2k views

WordPress 5.3 update causes media library file upload to break - Cannot convert undefined or null to object

So after updating to WP 5.3 I can no longer use the file upload to choose files to add. I get the following error: Uncaught TypeError: Cannot convert undefined or null to object at g.cleanup (...
0
votes
2answers
35 views

images inside wp-content/ uploads/ are not showing up in my media library and uploaded using FTP protocol

Hello would anybody be able to help my situation? at this point I'm wondering if it is a database issue because when i try the alternative to drag and drop an image into my media library i get this ...
0
votes
1answer
22 views

Images not displaying on site or media library

I ran into a problem with my site which is basically a portfolio site. I show my works as galleries in different pages. When I first uploaded my media, everything was fine and the site looked good. ...
0
votes
1answer
23 views

overwrite wordpress gallery with custom gallery shortcode

I want to overwrite the default WordPress gallery shortcode with a custom one. This because I need to add a field that will contain an url for each image I want to add inside a gallery. I'm not sure ...
0
votes
0answers
23 views

Empty media library on main site after multisite setup

I've started with a single WordPress site, inserted some posts and images. Due to the evolution of it I feel the need to set up a multisite for multi language purpose. After the setup all the media ...
0
votes
1answer
24 views

Using custom php to connect to database blocks wp from accessing galery pictures

I'm using simplepie to get a bunch of rss feeds and post them in a database from which I later show them on my page. I've added a custom php file with a shortcode to do this. // Connect to DB $...
0
votes
1answer
38 views

Media Library Mess After FTP … /uploads

I've got a Media Library mess on my hands. Transferred old site to staging server for redesign and uploaded large .../content/uploads via FTP after I was unsuccessful in importing media files thru the ...
1
vote
1answer
11 views

Is It Possible to Upload Certain Attachment Files To A Remote Server

My Situation I'm developing a book-store WordPress website where you can purchase and download books in PDF format. I don't want to use the local space for file storage (the host provider offers ...
0
votes
0answers
31 views

Hide all files from specific subfolder in Media Library

I use a subfolder /pdf/ in the Uploads directory, in which specific PDFs are added via another plugin: Example: /wp-content/uploads/pdf/filename.pdf Is there any simple way to hide all these files ...
1
vote
0answers
31 views

Error uploading image in WordPress

Hello i am trying to upload an image from a form in WordPress but i keep getting: Error loading File! without any clue as to what am doing wrong: require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load....
0
votes
0answers
26 views

How do I set a maximum upload size for a specific user role (Editor)

In Wordpress I want to be able to restrict each Editor to be able to upload 500 mb of different files in total. Is that possible? Thanks Kasper
0
votes
0answers
13 views

Which is faster: Loading images from the repo, or loading them using ACF Image Content via Media Library

I have two methods of loading images in my mind right now: 1 - I store an image in a folder within my repo, and load it as a background image, defining it statically in CSS/Inline CSS. 2 - I store ...
0
votes
0answers
19 views

Why does Wordpress convert my jpg's to png?

Anytime I upload an image to the media library it shows up as a png. And when I want to use it in a post Wordpress tells me I can't use a png. How does this happen? The site is in development and ...
1
vote
0answers
27 views

Attach Thumbnail Generated from Video Upload as Featured Image for the Video

I have a custom post type "Videos" where multiple video files can be uploaded. I need to generate a thumbnail for each of these uploaded videos and attach these thumbnails as "featured image" for the ...
0
votes
0answers
15 views

Disable media items from attaching to page once uploaded

I am wondering if there is any way this can be done? Basically disable the function that attaches media items to the page they were uploaded to. E.g. When I upload an image to the home page, in the ...
0
votes
0answers
110 views

Media library filter 'Uploaded to this post' missing in Gutenberg's image insert modal

End goal: Get the select menu input box back to allow a user to filter results. "Uploaded to this post", "Mine", "Images", "Video", etc. while inserting a Gutenberg Image block; not a gallery. I'm ...
0
votes
1answer
14 views

The image keep redirect to my previous URL after I moving my site

I have just move my website from a server to a cpanel which become localhost now. I simple copy all the wordpress file and database to cpanel.In fact, all the product image is can not be linked to the ...
0
votes
0answers
8 views

How to enable XSPF files on upload ? & mime types issue

i'm trying to allow XSPF uploads in Wordpress through a plugin: function enable_xspf_uploads($mime_types){ $mime_types['xspf'] = 'application/xspf+xml'; return $mime_types; } add_filter( '...
1
vote
0answers
186 views

move_uploaded_file() not working on wordpress front end

I have working code that uploads an image from the front end and sets it as a featured image and custom field photo for a custom post type but I am unable to figure out how to set the upload path. ...
0
votes
0answers
9 views

Can't see images uploaded by others

New Wordpress user here. I have a co-admin and we have uploaded media images to create pages but we can't seem to see the media files that the other person has uploaded. We can see our own media ...
0
votes
1answer
23 views

Duplicate/Clone a Multi-site But Use Same Images & Resources?

I'm looking for any advice before taking the step of cloning my main site into a sub-but utilizing the same resources. Is this an easy process? I realize I can strictly instruct my url paths, but in ...
0
votes
1answer
23 views

Organizing uploaded Media in permalink-based folder structure?

Wordpress seems to like storing files by year/month. This is nice, but not good enough for busy websites with loads of content. It'll be much nicer to have the folders reflect the exact same structure ...
0
votes
0answers
29 views

Why is unfiltered_upload not working despite being enabled?

According to the Codex, all that's needed to enable the unfiltered_ upload capability - i.e. the ability to upload any filetypes to the Media Library rather than just the default whitelisted ones - is ...
0
votes
0answers
21 views

How to identify the location of wordpress Query

There is a problem in my WordPress dashboard that the filter button in the media attachment thrown an SQL error every time with the query. In that query I Found AND statement and parenthesis which is ...
0
votes
1answer
49 views

add_image_size() in custom theme is not generating and saving any thumbnail

I am creating a custom theme (WP version: 5.2.2). In functions.php I added a few custom image sizes in the following way: function abhijaan_theme_setup() { function abhijaan_theme_setup() { ...
0
votes
1answer
59 views

image not display in media library and thumbnail not display in post

some problems with importing images. (1) Upload folder images do not appear in the wordpress media area. The upload folder is already with 755 permission. (2) Thumbnail do not appear on the site. ...
-1
votes
1answer
75 views

How to disable Media Library?

I would like to turn off Media Library for the entire website and instead have the Wordpress to use DB to store media for every unique add. How do I do it?
1
vote
0answers
50 views

Restrict file types in the uploader of a wp.media frame

When creating a wp.media frame in JS, is it possible to specify allowed file types for the uploads tab? wp.media({ title: 'Pick a PDF', button: { text: 'Use this file...' }, ...
1
vote
1answer
223 views

Add media attachment filter to custom wp.media frame

Using wp.media function to create custom uploader popup I can't find argument to show attachment filters. if(typeof wp === 'undefined' || typeof wp.media === 'undefined') { return false; } var ...
0
votes
1answer
30 views

Overriding of the template for the Attachment “thumbnails” in the Media Grid isn't working

I'm trying to customize the template of the Media Browser (when clicking on "Add Media" button within Edit Post page), by adding a caption with the filename on each thumbnail so I don't need to select ...
0
votes
0answers
21 views

Media item permalink goes to source file instead of attachment.php

My Media Library permalinks are bringing up the source items directly and seem to be ignoring my attachment.php file. This is happening for both attached and unattached files. I'm trying to use ...
0
votes
0answers
52 views

How to refresh media library without refreshing page

I'm trying to update the contents of the media library after adding a new image. I use this line for this wp.media.frame.content.get().collection._requery(true); but it does not work after opening/...
0
votes
0answers
11 views

Replicate Media Galley Edit view in Add Media View

I need little support of you guys with regards to one of the functionalities which are regarding the WP Media gallery, so, any help will be really helpful to me. Thanks
1
vote
0answers
31 views

How to use MediaUpload outside of editor

I am trying to create an interface that allows users to manage data stored in posts that pertain to them without actually giving them access to the custom post type that is storing that data. ...