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
0answers
25 views

Limit Media Library Access to Specific Folders

I have a site that will host about 100 "Clubs". When users are created, I am assigning them a "Club Leader" Role that identifies them as being a part of a club in general, but I am using a custom meta ...
0
votes
0answers
9 views

How to upload media via FTP, and the folder structure is kept when using a folder media library plugin? [closed]

Say I have a media folder in my computer named "Animal", which has 20 subfolders like "Dog", "Cat", etc. They all have images in there. Because it's large, manually uploading via WordPress is ...
0
votes
0answers
15 views

Snippet overwrite media files?

I'm looking for a snippet that will overwrite media files. Example: There a audio file called Dogpark.mp3 uploaded to wordpress. The next week I have a few file called Dogpark.mp3 which I want to ...
1
vote
0answers
19 views

Organize media library into folders and get folders via WP Rest API?

I'm building a Vue/NuxtJS portfolio site that will hopefully use WordPress as a headless CMS. I've been searching for hours but can't seem to come to a definitive solution. I know it's possible to ...
2
votes
1answer
59 views

How to make programmatic image upload generate thumbnail and sizes?

I have written a function to add a remotely-hosted image to the Media Library. It does so. However, it does not generate a thumbnail in the Media Library - and I believe standard practice should also ...
0
votes
1answer
16 views

Get full image array

When I use Advanced Custom Fields I can return the full image array of an upload. Is there a native WordPress way to get the full image array for any image in the Media Library by image ID? I can find ...
0
votes
0answers
16 views

Rebuild thumbnails via WP Cli - how?

I can use wp media regenerate to regenerate thumbnails. But I need to rebuild first, before I can regenerate. In the GUI of WordPress I have two buttons (if I have AJAX Regenerate Thumbnails plugin): ...
0
votes
0answers
5 views

Audio page link not working

I have uploaded some audio files into my media lbrary (Savona Pro theme) and then successfully inserted the links on to a page. However when I click the link it doesn't work? Can anyone help as to why ...
0
votes
0answers
8 views

Display custom field under image in TinyMCE editor

I have a custom media field called "Source" with the key media_author. I would like to display it under the image in the TinyMCE editor, like the caption field is: The caption field is editable, but ...
1
vote
0answers
17 views

add custom link to wordpress media gallery modal

Is possible to add a custom field to the wordpress media-library popup? I want to link some images gallery to external links. I'm getting the images where I want to display it using ...
0
votes
0answers
12 views

How to limit the amount of images uploaded to the media library within post.php

Over time, the media gallery gets heavier and heavier. I noticed that in admin-ajax.php the wp brings 40 images in a single query, it is taking too long to render the images on the screen, sometimes ...
0
votes
0answers
9 views

Is there an api documentation or good tutorial for the WordPress Media Uploader javascript Api?

I checked the developer docs and the codex, but I seem to be unable to find something on the Media Uploader javascript Api. Anybody knows some good resources on what can be done with the Media ...
0
votes
0answers
11 views

Make media fields required on upload in WordPress

I am trying to force the user to type in a caption (and/or the other fields) when they upload an image. That way they can't forget to put in the copyright for the images. Is there a hook and how can ...
-1
votes
1answer
28 views

Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?

I am planning to use External Media Without Import plugin which, like any existing media, uses the guid column of the post table to store the URL of the media (ex: jpg etc). My DB has this column ...
0
votes
0answers
16 views

Could creation of various image sizes cause slow form submission response?

when I submit an image to WP media gallery or trough various plugins, the process takes quite some time to complete. A 4MB image takes like 2-5 seconds to upload (got fast connection), then there is ...
0
votes
0answers
22 views

unsharp thumbnails after uploading image

I googled for a whole day and didn't found a solution. I tried a lot of plug ins and so on, but didn't get it. If I upload for example that image here: https://deermylove.com/wp-content/uploads/...
0
votes
0answers
9 views

How to add user based tab to media upload manager with custom set of images?

By following the below link, I am able to create user-based tabs. https://wordpress.stackexchange.com/questions/185271/how-to-add-new-tab-to-media-upload-manager-with-custom-set-of-images I need to ...
0
votes
1answer
51 views

wp_enqueue_media is not loading styles

I'm trying to upload images from the frontend using Wordpress default media uploader, so I used wp_enqueue_media(). It imports all the scripts but not the styles. See the screenshot below After using ...
0
votes
1answer
11 views

Attaching more than 1 parent (Post) to a media file

Im trying to build a Digital Album website for my family old pictures and albums. I crated a custom post type via Pods called "Family Members" and crated something like 30 Posts / Pages with the ...
0
votes
0answers
10 views

Upload array of images from external api to media library

I'm new into wp and I'm trying to upload an array of Urls into the wordpress media library programmatically. I do have a call to an external api and I save the images Urls into an array. <input ...
0
votes
1answer
26 views

Custom taxonomy not showing in grid view for 'attachment' post type

I've added a taxonomy called 'colors' to the built-in attachment post type. I can see the taxonomy when editing an item the 'list' view, but when using the 'grid' view, I can't see/use the terms of ...
1
vote
1answer
36 views

How to replicate Media Library “Add New” on Plugin Settings Page

When you click the Add New button next to the Media Library page title... It opens the Drop files to upload template... I want to replicate that on my plugin settings page. Ideally using default WP ...
0
votes
0answers
18 views

Adding to the Wordpress media library images stored on a remote server

I have Wordpress installed on server A and few thousands images stored on server B. I would like to add those images on server B to the Wordpress media library on server A without transferring those ...
0
votes
1answer
33 views

My image rotate 90 degree

For some reason, my pictures after being published on the site are turned upside down by 90 degrees, and everything looks fine in the admin panel. How to fix it ?
0
votes
1answer
35 views

Change Image folder Locations

I currently have a site that has a number of custom post types. I want to ideally have the following structure /wp-content-uploads/posttype/postid/xxxx.jpg. All the images are attachments of the posts ...
0
votes
0answers
29 views

How to get updated Alt text to be detected by SEO audit tools?

I recently updated the alt text of the image files on a website via the WordPress media page; however, SEMRush and Screaming Frog both cannot detect the updated alt text. I used the "Inspect element" ...
0
votes
1answer
46 views

Correctly using the root directory for media uploads?

I am aware what I'm attempting to do is not recommended - please don't reply just to tell me this. I have set the uploads directory to root by adding define( 'UPLOADS', '' ); to wp-config.php, which ...
0
votes
1answer
47 views

AJAX and custom pages

I have a custom page that I'm using that lets users transcribe archival document and upload them to a relational database (for history research stuff). What I'm trying to do at the moment is add a ...
0
votes
1answer
21 views

imported post image as normal image instead encoded image

i wonder if i can imported post image as normal image url instead encoded image, when i export-import posts (contains image) from one to other wordpress using wordpress importer, every post image ...
0
votes
0answers
21 views

Findout which user account uploaded an image to WordPress

I have this issue with https://matchmaker.lk/profiles/ Where users will be able to create profiles and upload a profile picture with gallery pictures. However, sometimes they get interrupted or some ...
1
vote
1answer
47 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
30 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
34 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 ...
1
vote
1answer
41 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
37 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
15 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
22 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
10 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
10 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
14 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
11 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
1k 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
59 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
25 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
20 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
25 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 ...
7
votes
2answers
3k 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
165 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
25 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
43 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 ...

1
2 3 4 5
17