Skip to main content

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
0 votes
0 answers
128 views

Hi I am using the standard Wordpress import/export tool to try to copy my media library to another WP instance. I export selecting only the media. I download the XML file. I import it to the new WP ...
Gaia Media's user avatar
1 vote
1 answer
72 views

It would be great if we didn't have to move media files around all the time. Is there a way to share the live site's media library with the staging server? I've tried change the option upload_path but ...
Chris Pink's user avatar
-1 votes
1 answer
304 views

Why isn;t there an "Add Folder" or an "Add Directory" function available on the Media Library page in WordPress? I found this: https://devowl.io/wordpress/media-library-create-...
Charles Bretana's user avatar
0 votes
0 answers
44 views

I exported 1600 WooCommerce products to a CSV file and after importing it to another site, I have 57,000 images in my uploads folder with different sizes and 2.5 GB in size. In fact, each image has 16 ...
Kourosh jahangiri's user avatar
0 votes
0 answers
101 views

I have have a site with 180,000 images. Most were added via SFTP and then added to the Media Library with the Add from Server plugin (which creates the image post and generates the WP and theme ...
Swapot's user avatar
  • 21
0 votes
0 answers
26 views

I use the plugin to convert jpg/png to Webp like Webp Express. But the Media Library can't see compressed images. It shows only original images. How to make the Media Library show the compressed ...
G 7 g7website-com's user avatar
0 votes
1 answer
64 views

I'm using 'pre_get_posts' action to filter the media so authors only see those uploaded by them or other authors. I managed to get the right result in the media page with this code add_action( '...
Athone's user avatar
  • 3
0 votes
0 answers
52 views

I've used this code https://wordpress.stackexchange.com/a/296517/254438 to add image sizes in media library. How do I add sorting of image sizes? I know there are plugins but I don't want to use any ...
Vaughn's user avatar
  • 103
0 votes
1 answer
96 views

I have this problem since wordpress was automatically updated by whm/wp-toolkit. I continued to use the "Media Sync" plugin to return the images to the "Media Library" and it works....
Ora's user avatar
  • 1
0 votes
0 answers
47 views

I've managed to modify WP so it allows .ai and .psd uploads using the following code: add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( $existing_mimes = array() ) { ...
Morris's user avatar
  • 103
0 votes
0 answers
47 views

I'm developing a wordpress page to submit a post and its images attachment. I don't use input type="file" instead use jQuery wordpress media library. frame.on("select", function (...
Samuel Limawan's user avatar
0 votes
0 answers
79 views

I am developing a plugin for a client, and we are using the add_attachment hook to extract metadata from the images that we process as part of the plugin. The funny thing is that the hook successfully ...
John Doe's user avatar
  • 289
1 vote
1 answer
182 views

I am in the process of revamping an existing site. The process I wish to follow is to start with a new clean site, then export/import posts and images in batches from the old site to the new. In the ...
Brett Donald's user avatar
2 votes
0 answers
60 views

When I load my media library (either through the media tab on the left or editing posts/pages and adding images in that interface) it shows that I have 1206 images in my site. However when I click ...
pressword's user avatar
  • 400
0 votes
2 answers
3k views

It's a 28.8 M .mp4 file that has uploaded to another WP installation and is live. I'm trying to use the same file on a development server - a fresh install of WP with a media upload limit of 512M. ...
happycoffeebean's user avatar
0 votes
0 answers
286 views

I am trying to clone a WordPress site, but the files in wp-content/uploads aren't shown in the the Media Library: OK: I have created a new subdomain for a new installation of WordPress, and I have ...
Torben Gundtofte-Bruun's user avatar
3 votes
1 answer
169 views

I've got some issues with file permissions which I'm trying to resolve... I have two sites and they both have the same permissions as far as I can tell but for some reason one site can upload files / ...
Ryflex's user avatar
  • 83
0 votes
0 answers
80 views

Often then colors of PDF thumbnails generated by Wordpress are wrong, they look over saturated. Is there something I can do to correct that, or is that caused by the PDF itself ?
mike23's user avatar
  • 6,069
1 vote
1 answer
73 views

I don't quite know how to explain what is going on, or how to title my post but I'm going to do my best. I'm making my first plugin for WordPress, which is very simple. Allow the user to select a file ...
level42's user avatar
  • 113
1 vote
1 answer
628 views

I'm trying to convert a base64 string to an image file and upload it into WordPress media library. It seems like the code is working, but, for some reason, every time I call this function it uploads ...
benjah's user avatar
  • 111
0 votes
1 answer
68 views

(All plugins disabled) I have some strange issues with the media library. It's an old site that I have been managing for the last 2 years. The site has dated media folders on disk going back to /2010/...
essexboyracer's user avatar
1 vote
1 answer
151 views

I would like to put a different limitation on uploading content in the media library ( depending on file size and file type) For example : Upload mp4 (allow maximum upload file size 64mo) Upload pdf (...
Samuel's user avatar
  • 354
0 votes
0 answers
120 views

Now, all the structure of the media folder is under /wp-content/uploads/ and years-months combination from the created date of the post. Is it possible that his path will automatically change to /wp-...
Victor Ramos's user avatar
0 votes
2 answers
214 views

My website's db is quite big. I have some 350,000 images in the media library (as well as some 350,000 posts). My wp_postmeta table has 4,580,552 rows. As a result, some queries are insanely slow and ...
Biranit Goren's user avatar
0 votes
1 answer
100 views

For my project I need to administrate user post and media without access to it personal account. So I must be able to create and edit a post (by is user name) before or after it has been created on ...
imagIne's user avatar
  • 105
0 votes
1 answer
111 views

All of sudden I am seeing the above. php.ini already have the following lines: post_max_size = 1024M upload_max_filesize = 1024M
Volatil3's user avatar
  • 363
1 vote
1 answer
202 views

I want to detect when the user click "Delete permanently" in media library so that I can use the post ID of said image to remove the image from my plugin. I have the below code, but it's not ...
www.matemingler.com's user avatar
0 votes
1 answer
133 views

Just switched WP themes and I have about 1300 media files attached to what Wordpress is calling a 'Private Post'. These Private Posts are actually photo portfolios from the previous theme. 200 ...
Elemental Media's user avatar
0 votes
1 answer
209 views

I am trying to implement a custom WP Media uploader within a plugin. I want multiple images to be uploaded also. I have the following javascript to open the media uploader. The modal opens fine and ...
JadeTech's user avatar
0 votes
1 answer
201 views

I'd just like to -safely- change the visual presentation on the Attachments pop-up window, ie. move some of the main DIVs around. But it seems like the only hook is to the entire function which is ...
jchwebdev's user avatar
  • 775
0 votes
1 answer
41 views

When I upload a new file I have this error message : Content, title, and excerpt are empty. I found the error messahe in wordpress_data/wp-content/languages/en_GB.po line 6809 (but it's a post related ...
Sami's user avatar
  • 174
0 votes
1 answer
59 views

I'm wanting to add a URL link into the image upload error message, but it's only printing the string, not adding the hyperlink. I'm using the code below function my_max_image_size( $file ) { $...
SolaceBeforeDawn's user avatar
2 votes
0 answers
108 views

Sorry for the somewhat rambly question, but has anyone ever seen any good piece of documentation, or maybe even a tutorial on the wp.media JS class? All that i could find documentation-wise is this ...
TimMKuehle's user avatar
4 votes
1 answer
245 views

I define custom image sizes in my theme like this : add_action( 'after_setup_theme', 'mwm_custom_image_sizes' ); function mwm_custom_image_sizes() { add_theme_support( 'post-thumbnails' ); ...
mike23's user avatar
  • 6,069
0 votes
1 answer
319 views

https://fleurdelys.nl/wp-content/uploads/2018/04/legle-sous-le-soleil-5-100x100.jpg I have this file that really shows up in the browser. If i check the upload directory it can noyt befound in the ...
Albert Dilling's user avatar
0 votes
1 answer
963 views

I understand that guid is a unique reference for a post, whether that post is a post or an attachment. When it's a post, I think guid is self-evident. But what is the correct formulation/destination ...
Robert Andrews's user avatar
0 votes
1 answer
259 views

I want to be able to upload files and either immediately or after upload assign multiple categories to them. I have 3 different kinds of PDF document: Treasurer report, minutes, and newsletter. What I ...
Lando's user avatar
  • 1
0 votes
2 answers
936 views

I would like to create a function that fires when a file is uploaded to media library to automatically assign multiple categories. So I created this code as proof of concept, but it is not assigning a ...
Lando's user avatar
  • 1
0 votes
0 answers
507 views

I have a custom login page for a site I'm working on that isn't related to the backend login. The purpose of this is so users that aren't logged in cannot see the site. When the site loads it looks ...
justDan's user avatar
  • 103
1 vote
0 answers
68 views

image upload failed. I tried to upload gym logo as thumbnail image for gym post type. All the form elements are working. But image upload is not working. images are not appearing in WordPress media ...
Safayet hossain's user avatar
0 votes
1 answer
297 views

I am trying to bulk update media file captions through WP CLI so i can attribute image creators. My command is as follows: wp media list --date="2022-02-24" --format=ids | xargs -n 1 wp ...
challenge2022's user avatar
0 votes
1 answer
520 views

A specific API, returns an image in binary in the data. If I need to save it to the server, I can easily do it by following the code. $response = curl_exec($curl); // This is the API response ...
Ranuka's user avatar
  • 1,794
0 votes
1 answer
3k views

I think my database must be out of sync, or something. I checked the wp-content/uploads folder in my Bluehost File Manager and I have many more folders and files than I see in the Media Libary. I also ...
Bobby's user avatar
  • 1
0 votes
0 answers
360 views

When you open a Media page and click the link to open an attached PDF, it uses the browser's own code to generate the HTML wrapper. And the HTML title is extracted from the PDF. We have many documents ...
jchwebdev's user avatar
  • 775
0 votes
0 answers
411 views

I am looking for a way to bulk edit taxonomies for the attachment post type (basically, for images). I needed to categorize a large Media Library, therefore I added a custom taxonomy by using "...
Manu's user avatar
  • 827
0 votes
1 answer
837 views

I have an import that runs in the background of my server through cron. I have a plugin called FileBird Lite (https://ninjateam.org/wordpress-media-library-folders/) that helps create folders and such ...
Jason Is My Name's user avatar
0 votes
1 answer
26 views

I have a wordpress multisite domain setup (subdirectory setup) and all the domains have been working fine (all end in .com). I've recently added a domain ending in .online. When I visit the media page ...
Andrew Traub's user avatar
0 votes
1 answer
187 views

I used the wordpress import tool to import a file and downloaded the attachments included. After a successful importation, I discovered that my media library only contains 3 file. After hours of ...
Uchenna Ajah's user avatar
1 vote
2 answers
1k views

The following applies to all attchment images on my site: There is a PNG image attachment, its ID is 519271. wp_get_attachment_image(519271, 'thumbnail', false, array( 'id' => 'esjb-preview-image' )...
Artem's user avatar
  • 315
0 votes
0 answers
218 views

I'm on a shared hosting plan. Getting this error log entry when the user tries to update any field on a Media Attachment. [13-Oct-2022 20:10:05 UTC] PHP Fatal error: Maximum execution time of 60 ...
jchwebdev's user avatar
  • 775

1
2 3 4 5
20