Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
0answers
23 views

WP multisite to use one media library for all sub-site

I am working on a Multisite project. Overview: We are creating the content/posts on main site using Visual Composer page builder plugin and then cloning that post across all sub site using a cloner ...
0
votes
0answers
26 views

Media Library Image Upload Issues

I am facing very wired issues. I have multi site in wordpress. There is around 71 sites. So I made all sites to SSL (https) Now what happen after https it gives error on media upload. Getting error ...
-1
votes
0answers
14 views

Images not showing after changing wp-content folder name iThemes [closed]

I renamed the wp-content folder to vape with the ithemes plugin. Images stop displaying completely in WP Media Library (Thumbnail & Editing image) and on the front-end, 400 images are attached to ...
0
votes
0answers
12 views

Add Media Dialog In WordPress Post Screen Too Confusing For My Users

How can I edit the contents of the Add Media box (shown above) in the WordPress post screen? All these options are unnecessary for my users, and I need to edit the short-codes as well, but it needs ...
0
votes
1answer
13 views

How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?

This alert shows when you click Delete Permanently on a media (attachment) item. My Goal: I want to change the text of the alert if the current user has a certain custom meta value. Also, changing ...
0
votes
1answer
30 views

Some Images Disappeared from Media Library?

I am missing some of my images in my Media Library on my site. When I go and look in the Media Library it shows where the images used to be with a blank thumbnail and if I try to view those images it ...
0
votes
0answers
30 views

Wordpress media library don't load most of the photos in library

Whenever i try to load photos in the media library of my wordpress woocommerce site only the view at the top appear and the rest display "Failed to load resource: the server responded with a status of ...
0
votes
0answers
17 views

Change media author to post author

I have many users images that I uploaded. I need the author of these images to be changed to the author id as I have restricted each user to view only their own media, and of course the images for ...
-1
votes
1answer
21 views

Why is my upload / Select media library button empty?

The button seems to exist but the content of the button is empty. I have tried: Disabling all the plugins Downloading again wordpress and overwriting wp-includes and wp-admin with the original ...
0
votes
0answers
17 views

Pulling images from the media folder category to display inside a page

I'm looking to pull images from the media library by a certain category. The images are uploaded by the client themselves via the Media menu in the admin panel and they also select the category. The ...
2
votes
1answer
42 views

How can I make the Uploaded field editable for Media Library?

The 'uploaded' date field for Media Library entries is read only. Is there a way to make it editable from the Attachment Details window in upload.php? I've tried the following code as a plug-in. It ...
1
vote
3answers
28 views

HTTP Error when uploading files above 7mb unless using GD Image Editor

I noticed recently that when uploading files larger than 7mb to a Wordpress site that I developed, I get an HTTP Error. I've checked some of my PHP variables, and have verified that memory_limit is ...
0
votes
0answers
61 views

How to upload multiple images using WP rest API to media?

I'm using JWT Authentication for WP REST API plugin and WP REST API Controller plugin Take this rest api for example, it's an api for this post, and here's the media I understand everything about ...
0
votes
0answers
23 views

correct way to call images from Photon CDN

I am having a bit of difficulty finding the correct way to call images from the CDN that I use - Photon from Jetpack Prevouisly - called them direct from the upload source wp-content/themes/mytheme/...
0
votes
0answers
50 views

Frontend Media Upload throws TypeError mediaelementplayer

I am trying to add a media upload button on frontend. Here is my code that enqueues media and my script file function pc_scripts() { wp_enqueue_media(); wp_enqueue_script( 'pc_custom', ...
0
votes
0answers
136 views

Media library corrupted after upgrading to 4.9.6

I just upgraded WP to 4.9.6. My WP installation is on Windows 10 in a XAMPP installation, running as a virtual server on my laptop. I migrated this site from a remote LAMP server, with mostly ...
0
votes
0answers
222 views

Blank image thumbnails in media library

I copied one website to other domain. i am using avada theme in my new domain all images show as blank thumbnails in admin but in website all images are show i checked permission of all folder and ...
0
votes
0answers
14 views

Customize wordpress media uploader and attachment fields

I am trying to customize the wordpress media uploader. Example: Instead of two tabs(Upload files, Media library) I want to have one tab where Upload files comes before media library. But I don't want ...
0
votes
0answers
35 views

Using media_handle_upload with array

I have duplicable file inputs in a form, and I would like to upload them to WordPress media library using media_handle_upload. A form looks like this: <form class="form mt-5" method="POST" action=...
1
vote
1answer
31 views

Rest API rename media

I've been able to upload images using the REST API but the names are wrong right now and I was thinking to go through all of the products I have and rename the images. Since I have more than 500 ...
0
votes
0answers
14 views

Applying “Organize uploads into month and year” after they have been put into one folder

So I made the mistake, a long time ago on a old site, to NOT organize uploads into month and year. I now have 50k+ files in the same folder and it is causing big problems. Is there any way to sort ...
3
votes
0answers
31 views

How can I use the TinyMCE editor for the description field on a Media item?

When I view an image in my Media Library, the Description field textarea has a toolbar, but it's only for creating HTML tags. How can I get the TinyMCE wysywig editor to be used instead? I've found ...
1
vote
1answer
45 views

wp_get_attachment_image_src returns the wrong image

I uploaded an image my-image.jpg of dimension 1280x854, after that, I went to Dashboard > Media to crop it to 854x854. (Apply changes to All Image Sizes.) This however only change its thumbnail in ...
0
votes
0answers
88 views

wordpress media upload given An error occurred in the upload. Please try again later

i am using wordpress 4.8.3 . my website was working fine but when i moved it to another server , i saw some images of my posts are missing and when i am trying to reupload these images i faced another ...
2
votes
1answer
51 views

Upload thousands of images to WordPress without plugin?

Update: After debugging why the uploads were so slow, I found out the culript was the plugin WP Smush It. The question and answer bellow is the process of finding that out. I'm processing thousands ...
0
votes
0answers
23 views

Specify minimum image dimensions when using wp.media

I want to limit an image picker to images that are at least 650x650; how can I do this? I haven't been able to find any reliable documentation on wp.media. Current code: const media_buttons = ...
0
votes
0answers
14 views

Media library uploader ( set featured image, or general selecting image ) view in LIST, never GRID

In a WP installation I have to work on, I found that when I click on "Set Featured Image" on a post, the Media Library popup appears, with a grey thumbnail, but no thumbnail of the uploaded images. ...
0
votes
1answer
244 views

Pictures won't display in media library and also won't show preview when selected

I have done the plug in, check permissions (upload folder which contains files for the media contents is 755), clearing cache (there was none, apparently), disable any extra plug-ins, check and ...
0
votes
0answers
13 views

Media Library Upload not storing wp_postmeta

Environment is Wordpress 4.94 Multisite with numerous blogs up and running. This issue affects this blog only and is not affecting the others. When uploading an image or PDF (or other asset) to the ...
0
votes
1answer
15 views

File sharing platform for user contributions? [closed]

I am looking for a way to allow my visitors to share content between each other in an organized fashion. Essentially the ability to upload files or browse/download files that others have contributed. ...
1
vote
0answers
31 views

My Media Library is broken across all my subsites

After installing a bad beta plugin, my Media Library is broken across all my sub-sites. I’ve set my upload directory under Sites > domain.com > Edit Site > Settings > Upload Path to wp-content/blogs....
0
votes
0answers
20 views

Wordpress - Media are not in wp-content/uploads but show in Media Library

I know that a lot of similar issues were asked before, but there is no clear solution to this. Some media files do not exist in wp-content/uploads anymore, and thats fine probably these media were ...
0
votes
0answers
48 views

Is it possible to split Default WP Media directory to multiple Folder/Subdomain?

Is it possible to split Default WP Media directory to multiple Folder/Subdomain? Coz, WP auto-generated images make sure responsive. So, I want to split media directory to separate fo Example: ...
1
vote
0answers
20 views

Importing Media IDs but not related attachment

When importing media to a live site that was exported from a local environment, I tried uploading the uploads folder to a temporary location and then updated the XML to the new paths. It worked for a ...
0
votes
0answers
27 views

Show original image in media library after edit

Well, everyone wants to get rid of duplicate images, and I would like to create some :) sort of... I'd like to achieve that when I EDIT an image in WP default image editor, on hitting save, to have a ...
0
votes
1answer
405 views

Upload images from custom plugin using the media modal

I'm creating a custom plugin and I need users to be able to upload multiple images. I want them to be able to do this through the built-in media page but through a modal/pop up from the plugins ...
0
votes
1answer
53 views

Image paths wrong after migrating with wp-migrate-db-pro media files add-on

I'm having trouble creating a staging site from an existing production site. When pulling media files using WP Migrate DB Pro 1.8.1 with the Media Files add-on v1.4.9, I can successfully populate my ...
0
votes
0answers
15 views

Change default settings for gallery for gallery post format

Is there a way to set default gallery settings values in the Media popup, when post format is gallery and user wants to insert gallery in the page using the native Wordpress Uploader popup? If not, ...
1
vote
1answer
19 views

After moving from complete AWS setup to a standalone Wordpress Server, Media/Image Files are Broken

Linked images on old article is pointing to: /wp-content/uploads/YEAR/MONTH/filename.jpg and isn't found. Because the correct URL/Folder structure I got is: /wp-content/uploads/YEAR/MONTH/...
0
votes
1answer
131 views

Insert Link to Audio versus Embed Audio Player

I've run into a very odd problem. One of my authors will upload an audio file in the Media Manager, and instead of giving the option to embed a media player, it just inserts a link to the audio file. ...
0
votes
0answers
18 views

Site(fav)-icon editor (SVG), missing Drop Cropping

I have added support for uploading of SVG files to my WP theme, and got it mostly working. When editing the Logo i can choose the "Drop Cropping" option, on the media editor - but when trying to edit/...
0
votes
1answer
474 views

Edit image preview is not displayed in wordpress edit

When I click on "edit" for an image I see the editor and I see the thumbnails on the right, Wordpress just won't show me the actual image in the main area. /wp-admin/admin-ajax.php?action=imgedit-...
0
votes
0answers
17 views

Avoiding re-uploading the same file to the media library

I have media sources named, say, https://example.com/one/image.png and https://example.com/two/image.png, and I have used media_sideload_image("https://example.com/one/image.png", $post_id) previously ...
0
votes
0answers
202 views

Issues with uploading files after setting up WordPress using IIS on a Windows Server

I've been trying to get a WordPress site setup with IIS, using Windows servers. I've just about got it running, but am having a few issues with uploading images or files to my media library (localhost ...
0
votes
0answers
23 views

Media not displaying other users uploads - WordPress 4.9.2

I am currently running on Wordpress 4.9.2 and i recently changed the user id's of two admins from phpMyAdmin and made the changes on the tables wp_users, wp_users_meta, wp_posts and everything seems ...
0
votes
1answer
107 views

download button for audio file in post [closed]

I am setting up a website for audio files, i have uploaded an audio file and inserted in a post in given link http://darsequranmardan.com/quran/siparah-18/1-surah-al-mumenoon-ayat-1-to-16/ the audio ...
0
votes
0answers
74 views

Why does media_handle_sideload upload to last month's folder?

I have this class to scrape instagram pictures and save them locally, the function get_local_photo_links() is where the issue is: <?php class Scrape_Instagram { private $images = array(); ...
0
votes
0answers
28 views

Attaching and detaching image to the post without deleting the original image in media library

I have CPT advert to which I want to attach image(s). I am able to attach images to the CPT using the image that is already in media library, however when trying to delete the image I also delete the ...
0
votes
0answers
133 views

How to make the media library searchable by image title

I am relatively new to WordPress theme development, so there are still a few things that I have not come across. I created a basic WordPress theme and my client is unable to search the media library. ...
0
votes
1answer
24 views

How to manage a music library in wordpress

I need to make a music library which will primarily be sorted by artists. I'll need a database to hold all the music titles, artist, genre etc. I'll need some sort of backend language to manage the ...