Skip to main content

Questions tagged [media]

An image, audio or a video comprises a media.

Filter by
Sorted by
Tagged with
0 votes
2 answers
44 views

This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading

This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading. description: https://ibb.co/r31V1gk
Huu Thang's user avatar
0 votes
0 answers
16 views

Multiple image selected -> only first added

wordpress 6.5.4 I select multiple images from the native media viewer but only the first is added every time. This seems to be new after update to 6.5.4. Not sure how to fix this ?
jotyhista's user avatar
0 votes
1 answer
24 views

Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media

I want to get Specific Extension Files from Media of Current Post Uploads—for Instance, .jpg or .png or .pdf, or MP4. (Get Only 1 Extension All Files From Current Post Uploads) Specific Extension ...
Islamic Quran Center's user avatar
0 votes
0 answers
18 views

Enable Downloads on WordPress Attachment Page

I'm currently working on a WordPress site and need some help with enabling downloads for video attachments on their respective attachment pages. Since the videos are being handled in bulk, I'm using ...
Joseph La Mere's user avatar
1 vote
0 answers
14 views

Wordpress is adding "-1" to the filename of media items

On a website I administer, I just noticed that Wordpress is adding "-1" to the filename. Which is expected behavior for a file that has already been uploaded. But these files have not been ...
Ann Foley's user avatar
0 votes
1 answer
23 views

Cannot add image (png, jpeg, etc.) but can add pdf, 403 forbidden when posting

I just encountered a bug when I am trying to post with images. When I am adding media using "Add Media" button, the image will not add and will have this error: POST https://philsa.gov.ph/...
Nikko's user avatar
  • 101
0 votes
0 answers
17 views

Images being uploaded via WP Media are not attached even they are used by some CPT posts

I would like to delete thousands of images on my WP websites which are no longer used by some CTP posts which have been removed even from Trash folder. However, I found out that Images being uploaded ...
James Black's user avatar
0 votes
2 answers
24 views

Wordpress MediaElement audio player won't seek and resets back to the start when files are locally hosted

Edit: If anyone runs across a similar issue; the problem was I had Cloudflare DNS Proxy turned on for my server and that was causing the audio issues. It seems to be a semi-common problem from ...
Nate M.'s user avatar
  • 77
0 votes
1 answer
27 views

When inserting media file in a post or page, show file name under the thumbnail

When using insert media into a page it shows a grid of pictures. How can I change that to see file names instead (or both)? And would there be a way to have the images sort by file name?
CAlexander's user avatar
0 votes
0 answers
24 views

How to Upload a media item with alt text and description

I'm trying to upload a media file to the media library with the altText and caption for it using the media endpoint: https://developer.wordpress.org/rest-api/reference/media/#create-a-media-item ...
Vikram Aruchamy's user avatar
1 vote
0 answers
13 views

How to add a post page from a button without reloading

I am a novice in developpement and I am trying to create a page. When I click on the button Gutemberg, it will generate a post page with a text and an image. The problem is that the page is created ...
OceaneEMILE's user avatar
0 votes
1 answer
40 views

'Add Media' to post - filter images

Can anyone help me with this? ... I am trying to locate and understand the javascript and/or php/ajax code that filters the thumbnails that show in the interface when a user clicks "Add media&...
patrick_here's user avatar
1 vote
2 answers
84 views

Front end form with images and media_handle_upload logic?

I'm building a front-end form with image submissions. The form creates then a new post: ...process post... $application_id = wp_insert_post($application); I then use media_handle_upload to upload ...
Runnick's user avatar
  • 1,009
0 votes
0 answers
11 views

How to make the search form in "Add media" search custom attachment fields?

I've added custom fields to image attachments on my site, something like this: function mysite_attachment_field_to_edit( $form_fields, $post ){ $form_fields['my_ref'] = array( 'value' =>...
Phil Gyford's user avatar
1 vote
0 answers
17 views

Updating a remote media library plugin, wich breaks on php 8.1 update [closed]

We use the (now abandonware) plugin Remote media libary, with the Flickr add-on. It allows the user to see the wordpress photos and albums in the media library. https://wordpress.org/plugins/remote-...
user3263070's user avatar
0 votes
1 answer
65 views

Can not access .txt file which I uploaded through media

I can not access my uploaded .txt in Wordpress, it gives a 403 access denied error. I can access .png files however, why not .txt files? I uploaded my file here: And got the URL here (I click copy, ...
NoKey's user avatar
  • 101
0 votes
0 answers
25 views

I have uploaded thousands of files in the uploads folder via FTP and I want to register them into the database without any plugin

I have uploaded thousands of files in the uploads folder via FTP and I want to register them into the database without any plugin because plugin takes so much time. Is there any way to register them ...
Sheikh's user avatar
  • 1
1 vote
0 answers
17 views

How to revert the media structure from /uploads/year/month to the /uploads directory in wordpress?

I tried to use wp-cli using regex like this: wp search-replace 'uploads/[0-9]+/[0-9]+/' 'uploads/' --all-tables --regex but in this case there is a problem with possibly repeated file names and ...
Macsurf's user avatar
  • 11
1 vote
1 answer
255 views

Convert base64 string to WordPress attachment uploads multiple images instead of a single one

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
64 views

stop resize button for wordpress media

The images in my WooCommerce product gallery do not need to be resized I only need the original image to display. Is there a way to add a toggle button to wordpress media to tell it to generate other ...
Monoor's user avatar
  • 13
0 votes
1 answer
18 views

How to prevent wordpress from redirecting media attachment page to media page?

For some reason googlebot tried to index my media attachment pages and got redirected to media pages. This seems to be a default wordpress behavior. To recreate it, upload an image called test.jpg to ...
Nicolas Guérinet's user avatar
0 votes
1 answer
33 views

Media Library Issues

(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
0 votes
1 answer
49 views

Different upload file size limits based on file type

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
  • 344
0 votes
1 answer
27 views

audio tags no longer working

On my website, I had a plugin, that displayed a media tag like [audio src=path/file.mp3]. It returned this tag in the HTML retruned from the shortcode function. function init() { add_shortcode('...
Lorenz Meyer's user avatar
1 vote
1 answer
22 views

wp-content/uploads/year/month returns 404

I have a litespeed hosting I have disabled all plugins and all wordpress related htaccess rewrites. If I go to https://digitalzoomstudio.net/wp-content/uploads/2023/ - then I can see the directory ...
digitalzoomstudio's user avatar
0 votes
0 answers
24 views

images inside uploads folder will return 404

My images will not load . accessing anything inside the uploads folder returns 404 https://digitalzoomstudio.net/wp-content/uploads/2022/11/image-1-1024x617.png I am 99% sure I am not crazy and that ...
user237193's user avatar
1 vote
0 answers
111 views

Undefined array key "width" in wp-admin/includes/image.php error when publishing post or page

When publishing a post or page that includes trusted SVG files in the content, WordPress spits out the errors Undefined array key "width" in wp-admin/includes/image.php and Undefined array ...
Motivated's user avatar
  • 215
0 votes
0 answers
10 views

Replacing embedded post images from another site

I am migrating a site to a new domain which contains post with embedded images. Is there an automated way for me to get the images uploaded to my site and replace the embedded of the old domain with ...
Peter Borg's user avatar
3 votes
1 answer
354 views

How do I display a PDF thumbnail as a link to the PDF without uploading the image

When I found a couple of years ago that WordPress will create thumbnails of uploaded PDFs, I was so happy, thinking I wouldn't have to make and upload separate PDF cover images to have a thumbnail ...
bkepl's user avatar
  • 131
0 votes
0 answers
55 views

Permission to edit media files (photo captions, alt tags)

What permission is required for a user to be able to edit all media files in Wordpress? I'm trying to edit the captions and alt tags of some media files in Wordpress. I can see the media file in the &...
Michael Altfield's user avatar
0 votes
0 answers
33 views

Cache API Images to Prevent Hot Linking

I'm building a shortcode that display's a list of items from a public API, that each have a thumbnail URL. If I use the URL as src attribute, I create a request to their server for every image. I want ...
Cebbi's user avatar
  • 123
0 votes
0 answers
13 views

media not opening in a new tab

I have links to many media links that are photos on a post in wordpress. I have the settings as "open in a new tab." Unfortunately whenever I click on them it just opens up the photo on the ...
Matthew Nemelka's user avatar
0 votes
2 answers
238 views

How can I get the Media Library backend to show larger thumbnails?

I have a pretty simple need. On the admin screens, my media gallery is reducing my picture thumbnails to about 145x145 so they'll fit in 6 columns across the screen. The only way I can get a good look ...
John Smith's user avatar
0 votes
0 answers
27 views

Multimedia upload error in my wordpress job board plugin

I have the below code in my plugin. Admin is meant to be able to insert funding_amount, funding_deadline, and funding_multimedia_field from the dashboard if the resource category chosen is funding. ...
ADEMESO DAMILARE's user avatar
0 votes
0 answers
14 views

How to upload multiple images to use as gallery in Kirki Framework

I am using Kirki Option framework which works like charm in most cases, I recently shifted from Redux framework. I have a section in my website for the gallery, I want to upload multiple images using ...
Milan Bastola's user avatar
0 votes
1 answer
504 views

Uploading images via ACF update_field function

I am trying to update image fields within a group in ACF via the update_field function I am successfully adding the images to the media gallery but I am having trouble getting them added to each ACF ...
grzybowski1911's user avatar
1 vote
1 answer
84 views

How can I get all attachments by a user on a WP multisite network?

I'm creating a front-end based project where users can make posts and add images to them. It's a network of sites that users have access to. For a better user experience, I want users to be able to ...
ToongeePrime's user avatar
0 votes
1 answer
47 views

Detach Wordpress Media Files In Bulk

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
1 vote
0 answers
51 views

Problem with "is_user_logged_in()" and woocommerce (Code for custom media upload for each author.)

I'm sorry for my english... I am using the following code to create separate media directories for each author.. ( Thanks to https://wordpress.stackexchange.com/a/400352/220907 ) function ...
Andrei Ka's user avatar
0 votes
1 answer
551 views

How allow only the uploading user access to media

I have an application that requires that only the user + admin can access files uploaded by that user? EG a user uploads an image to media. Only that user should have access to it Thanks for any tips ...
Cloudworks's user avatar
0 votes
0 answers
10 views

How can I move the position of the View attachment page link on the Attachment Details popup in the Media Library?

I'm not trying to be lazy but I can't seem to find a hook which describes how this might be done.
jchwebdev's user avatar
  • 775
0 votes
0 answers
23 views

Unable to access media library, but getting an error as forbidden You don't have permission to access this resource. I have administrative rights

Unable to access media library, but getting an error as forbidden You don't have permission to access this resource. I have administrative rights
Harsh Chauhan's user avatar
2 votes
1 answer
110 views

wp.media multiple selection limit

When I use wp.media dialog , is there a way to limit how many files can be selected when multiple option is used? wp.media({ library:{ type: "audio" }, ...
Toniq's user avatar
  • 437
0 votes
1 answer
121 views

How to solve too many files in uploads folder(s)?

my wordpress has this setting for upload - .../uploads/{year}/{month} However I noticed that some folders (like .../uploads/2023/06) have 30+ thousands files. So I want to relocate them to new ...
wpproguser's user avatar
0 votes
0 answers
35 views

Optimize blog that serves hundred of images and videos

We have a website that contains 20,000+ media. It serves images and videos per post(500 post as of now). Opening posts takes a very long time to open because it contains images(500+) and videos(50+). ...
user14772091's user avatar
2 votes
0 answers
42 views

Add to Media Inserter Categories

As of Wordpress 6.2, Openverse was integrated into wordpress and it is available under the Media Tab of the Inserter. I want to develop a plugin that integrates another stock image service into the ...
merctraider's user avatar
0 votes
1 answer
518 views

Uploading media to wordpress API with C# HttpClient

I was trying to save some media but I can't get it to work. I don't know if its the authorization is the wrong format, or if its the content is just put in wrong. If someone knows how to please help ...
UltimateSeeSharp's user avatar
0 votes
0 answers
112 views

Add custom css class to wp-list-table row for Media Screen

How to add class to the row of WP List Table in Media List page like the following. Add custom css class to wp-list-table row for custom post type Thanks
Tristup's user avatar
  • 101
1 vote
1 answer
181 views

wp media regenerate says "no regeneration needed" whe that's no the case

I'm trying to generate thumbnails for a PDF attachment. Right now in the uploads/ folder there is only the PDF file, no image thumbnails related to it. But when I run the regeneration with : wp media ...
mike23's user avatar
  • 5,981
0 votes
1 answer
165 views

Does WordPress import export tool keeps the file hosted on the old website?

I have an old website with several GBs of media data. i want to export the media files with wordpress export / import tool to my new website. Wordpress gives me a 10mb .xml file out of the several GBs ...
Khaled's user avatar
  • 1

1
2 3 4 5
22