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
1answer
8 views

Media library links broken WordPress Multisite after SSL update

We updated (not added) SSL to the site The media on the network admin media library works fine, but the media library for the sub-sites displays a grey box for example: Image url looks like this: (...
0
votes
1answer
19 views

Set different max upload size limits based on file type/extension

When uploading with video files to the Media Library, it's apparent that you need to increase the Max upload file size value. But this will be applied to all media types, including images and ...
1
vote
0answers
7 views

How to open default wp image editor screen dynamically?

I'm displaying gallery images of the logged-in users on the frontend with the edit button. Now I want to link that edit button with the default WP Image Editor screen that includes tools like crop, ...
0
votes
1answer
15 views

Which post/page an image is attached to

When I filter by unattached in the Media Library, it returns images that are used in posts and pages. Are there ways to see which specific posts/pages an image is attached to?
0
votes
0answers
14 views

Add Filebird folder column to Media Library [closed]

I just switched from Enhanced Media Library (abandoned plugin) to Filebird. The first thing I noticed is that there is no column for the folder name. I found this thread re. the same issue: https://...
0
votes
0answers
10 views

Image srcset returns false for some images + Image Sizes missing from attachment

I have a weird issue going on in WordPress at the moment. Some images does not return any image sizes, and when using wp_get_attachment_image_srcset it simply returns false. I have no idea why this is ...
0
votes
0answers
7 views

Using PDF's Title as the Title in the Wordpress Media Library

I have a folder of PDFs created in Adobe Acrobat. Each of those has a title set in the document's properties. Most importantly is the title, which needs to go the Title Field when I upload to the ...
0
votes
0answers
15 views

Why are my audio files only partially uploading?

I have been operating this WordPress site for over six months. It is for a radio station. They have requested to have some of their special programming put into an archive on their site. I have been ...
0
votes
0answers
31 views

How can I remove the 'File URL' field from the image attachment editor?

When you go into the Media Library and select an image to edit, its associated 'Attachment details' page appears. On this page, there is a 'File URL' field which details the attachment file's URL. ...
0
votes
1answer
24 views

How To Watermark Audio

Does anyone know a way or plugin that will help me to automatically watermark any audio uploaded in the wordpress media library
1
vote
0answers
8 views

How do I migrate blog post images from one domain to a new one?

The conflicting articles I am finding on the web are leaving me more confused... :) For backstory, I work for a company that has been acquired by another. I am now tasked with moving all the blog post ...
0
votes
0answers
13 views

New Column in Wordpress with the file size and sortable

This code adds an additional column to see the size of the files. It works well! But I would like to be able to sort the files by size Any ideas? add_filter( 'manage_media_columns', '...
0
votes
0answers
16 views

Remove media from query which contains specific metadata?

I have been working on a solution to filter out specific files from my Media gallery. So far I have been able to do it with this function: add_filter('ajax_query_attachments_args', function($query){ ...
0
votes
0answers
10 views

Wordpress media library broken (Cloudfront, EC2, S3)

I have a problem I cant solve. I have a WP-installation on AWS, and using Cloudfront via WP-Rocket. I updated a few plugins, which broke a lot in the site. I uploaded the new plugins versions to our ...
0
votes
0answers
19 views

How to Import Media with a name more than 100 character?

I want to Import media from another site that I've exported. When I import media, WordPress automatically changes media names with more than 100 characters and deletes first words of the name and ...
2
votes
0answers
43 views

How to host different file formats/types for a media attachment without creating multiple attachments?

For a better browser compatibility we often have to maintain multiple format of a media. For example: Image - JPG & WebP Image animated - GIF & WebP Image transparent - PNG & WebP Video - ...
0
votes
0answers
15 views

Search media with javascript

For testing purposed I want to search through the media of the featured image. But I can't seem to activate the search. From the admin product detail page I now have: // open featured image document....
1
vote
0answers
31 views

How to prevent WordPress scaling large images down

I've tried the following code in the active child theme's functions.php to prevent the large digital print JPGs from being scaled down, but it didn't succeed: function remove_all_image_sizes() { ...
0
votes
1answer
14 views

Is it possible to pull all featured images from WP database only?

We are creating a new website and want to pull all featured images into the new site, but we don't want all the images from the WP database, only the featured blog post images. Is there a plugin or ...
0
votes
0answers
11 views

Media library default tab/view

I am using Woocommerce and WCFM – Frontend Manager plugins. Is it possible to allways open media library “Upload file” tab/view first instead of “Media library” tab/view when adding image or ...
0
votes
1answer
27 views

Custom field in media library not saving, selected() function not adding “selected” to select list input type

Following the approach in the developer docs for selected() but can't get it to work with a custom field in the media library for a select list. It won't save the value, or become "selected"....
0
votes
0answers
53 views

How to upload very large JPGs to Media Library for WooCommerce digital download prints

I'm trying to upload a JPG 9927 px x 14043 px through editing a WooCommerce product, and adding a downloadable file. Every time I try, I Receive an error: Post-processing of the image failed likely ...
0
votes
1answer
27 views

Need clear explanation about medias/files/attchments

During an import, I need to add images and linked to a custom post using WPML like : post 1 in french 1.1 picture foo.jpg (visible in library and attached to this post and add as featured image ) 1.2 ...
0
votes
0answers
14 views

Restrict Users to Only Edit Media Owned by Users in Their Role

I want my users to only be able to edit media that is owned by other users in the same role as them... So far all of my research online the past two days have resulted in almost nothing useful to me, ...
0
votes
0answers
13 views

Exclude specific media/post ID from media library plugin?

I have a multisite setup and I use a plugin called Multisite Global Media https://github.com/bueltge/multisite-global-media I have a specific site ID set that shares the complete media library with ...
0
votes
0answers
15 views

Bulk upload images with custom URL

I am running a library system on Wordpress. Right now, my book cover images are saved like this: /wp-content/uploads/2020/06/[book_barcode].jpg I want to change this to /wp-content/uploads/library/[...
0
votes
0answers
8 views

SVG files doesn't show dimensions anymore?

My Wordpress Media doesn't show SVG file dimensions. Do you know the problem? Before: After :
0
votes
0answers
9 views

media library not showing images

I have a wordpress install that I copied the entire directory and to make for a second domain. I was making changes to set the site to be it's own version of my original cool site and noticed that ...
0
votes
0answers
17 views

WordPress Media images disappear after a while

i am having trouble with WordPress images. Large images that automatically get rescaled by WP disapear after a while. Clicking on original image yields error 404. But looking at the actual image link ...
0
votes
0answers
8 views

Hide all the media in the media uploader for non logged in users

I have implemented a plugin that create a custom post type called "Id Card" for a diferent schools just filling a form. The system allows that from the frontend with the help of a shortcode, anyone ...
1
vote
0answers
24 views

Manipulate an image before saving or after to the media libary

I want to add a colour effect and pixelate etc to my images. So the best way I think of is to do the manipulation of all images prior to saving. I have the created the class to call and manipulate ...
1
vote
0answers
41 views

Merge Multisites with Shared Network Media Library

So have a multisite setup which no longer needs to be a multisite but I'm left with a bit of a mess since I used Network Media Library plugin to host images for all sites on the network. I'll try to ...
0
votes
0answers
33 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
18 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
38 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
66 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
19 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
22 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
6 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
18 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
18 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
14 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
13 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
12 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
45 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
23 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
12 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
115 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
12 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 ...

1
2 3 4 5
18