Questions tagged [media]

An image, audio or a video comprises a media.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Access generated thumbnails

Is it possible to allow my editors to access the generated media thumbnails within the media library? So for example, when a user selects an image, they should be able to also select the thumbnail ...
Basti's user avatar
  • 63
0 votes
1 answer
141 views

Double Slash After Media Path (uploads//)

After performing an SEO Audit on my client’s website I found out that several images have a double slash in their URLs. This seems to be happening just to media files, and the double slash is ...
Leandro Santorsola's user avatar
0 votes
1 answer
16 views

WordPress Media Library Folders + Custom Linux Server Hosting

I'm coming to you because I have a big problem with my hosting and the functioning of the FileBird - WordPress Media Library Folders plugin. I created my hosting on a NAS, on a virtual machine with ...
JuPix's user avatar
  • 1
0 votes
2 answers
179 views

Media changes not updating posts

What happens: Write a post Create a gallery Upload a random picture Set caption to "test" Publish Post Go to Media -> Select the picture from before Set caption to "changed" ...
CasualBen's user avatar
  • 103
-1 votes
1 answer
383 views

wp_temp_dir does not change the /tmp temporary default directory

I have a problem changing the temporary folder. I have have define the new temporary folder using define( 'WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/' ); before the line /* That's all, stop ...
mors's user avatar
  • 3
0 votes
0 answers
350 views

Setting wp_temp_dir and permissions not working for "Missing A Temporary Folder" error

I have a problem uploading files to my main webpress site (e.g. www.main.com) and all the other pages that live in it (e.g. www.main.com/anotherpage). I know there is a method to set a temp folder ...
mors's user avatar
  • 3
2 votes
1 answer
112 views

Media library storing files in uploads not folders within in uploads

I am working on a site rebuild, I need to preserve about 100 blog posts that include images. I was having issues exporting the images and I decided to just download them via FTP. However, I found a ...
grzybowski1911's user avatar
0 votes
1 answer
40 views

Media permalink to go directly to uploaded PDF, instead of a media page with a link

When someone visits our permalink, we need it to go directly to the media PDF, rather than showing a page with the preview which is clickable. Is this possible?
user2924019's user avatar
1 vote
1 answer
31 views

How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product

How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product. Because I want to make a photo album blog, the images within each post ...
29 lee's user avatar
  • 11
0 votes
2 answers
473 views

how can I change all wordpress media file url to custom cdn url?

any function can apply change all image URLs to CDN instead of modifying media.php in wp-includes folder ?
Heng Seyha's user avatar
0 votes
1 answer
37 views

Returning data instead of echoing/printing

New to WordPress (and PHP) and am trying to get this PHP snippet to work with the Code Snippets plugin so I can display all media attachments within my post. It is working, in that it shows the ...
Mason's user avatar
  • 1
0 votes
1 answer
38 views

Migrating media files (documents only) to a fresh install and maintaining the same directory structure

I've rebuilt an old website from scratch on a fresh install. On the old (production) website there are over 1000 PDFs and Word docs. These have been uploaded over a 3 year period via /wp-content/...
Sam's user avatar
  • 2,044
1 vote
1 answer
120 views

File Type Is Not Permitted - Cronjob

I am currently developing a cron job that downloads a xml file from an external source and stores it within wordpress media. For debugging proposals, I have installed the plugin Advanced Cron Manager, ...
Basti's user avatar
  • 63
1 vote
1 answer
295 views

Display "large" image size and show caption in attachment page

On the attachment page for an image, I'd like to display the image in its "large" size. The current behavior is showing the "medium" size image. I'm using a theme I created from ...
Mike Eng's user avatar
  • 238
0 votes
0 answers
12 views

User uploads image as "Featured Image" but WordPress resizes it?

I have a user with permissions of Author uploading an 800x238 image to WordPress as a Featured Image. When it's uploading, I can see that it uploads correctly: https://ygoprodeck.com/wp-content/...
GenesisBits's user avatar
0 votes
0 answers
84 views

Publish / unpublish media items in the media library

I'm wondering if / how I might publish and unpublish specific media library items without deleting them, using plugins and/or theme code. My use case is that I am planning a site where pages will ...
Mike Eng's user avatar
  • 238
1 vote
2 answers
669 views

Restrict WordPress Media Library for a specific user role (users can only see/select own media)

I have 4 roles in my platform : administrator, author, editor, external I need to restrict WordPress media library access to the user’s own uploads only for one users role (external) on my platform. ...
Samuel's user avatar
  • 314
0 votes
0 answers
40 views

Profile image does not upload

when i logged in "Font-End" as a user "Employer" and try to upload my profile image, it does uploaded but when i click update i got this alert error " No editor could be ...
Norman's user avatar
  • 1
0 votes
0 answers
34 views

Use media files from a different server just for one custom type

I have Big PDFs on my site so I move it to differ server. is there any way I can show it n my media gallery popup when I click add feature image or upload images without importing them to my current ...
Jagdish Sharma's user avatar
1 vote
2 answers
46 views

Automatically assign video 'poster' value to 'filename' for archive listing

One of my sites is used as a personal diary with >5000 videos uploaded within the media library. Each post uses the following shortcode, disabling pre-load and assigning a manual poster. This ...
helpless_fool's user avatar
0 votes
1 answer
217 views

Do custom post type (CPT) attachments/media store the parent post ID?

Do custom post type attachments store the parent post ID, and if so, how do I retrieve it. I need to prepend the ID of a CPT post to the uploaded media name, eg 123-my-file-name.pdf I do have this ...
Tracy Shorrock's user avatar
0 votes
1 answer
332 views

How does wordpress handle media files?

I couldn't figure out how wordpress handles media library. I copied the media files from one vm to another using gcloud compute scp... The files are successfully copied to the wp-content/uploads/ ...
FlyingPenguin's user avatar
-1 votes
1 answer
148 views

Blurry Images Wordpress 5.8.1

I've tried to Use .png instead of .jpg Disable wordpress default compression add_filter('jpeg_quality', function($arg){return 100;}); Switch themes to test Disable plugins Regenerate thumbnails ...
CuppaCoffee's user avatar
0 votes
1 answer
158 views

Create multiple folders in upload media folder

Is there a way to upload images to multiple folders in the media library without using a plugin. This is to create file paths to enhance SEO for an online store. I would like to have the URL show ...
Cra1gyb's user avatar
0 votes
1 answer
886 views

Create a permalink to a pdf?

I have a website where I want the permalink to my resume to be www.example.com/resume, so that whenever I send someone that link, it goes to the most recent version of my resume. But I don't want my ...
Catlard's user avatar
  • 103
0 votes
1 answer
158 views

Use rich text editor in 'Edit Media', for attachment media description

I have the following in my functions.php: add_filter( 'wp_editor_settings', function( $settings ){ if( get_post_type() == 'attachment'){ $settings = [ 'wpautop' => true, '...
3x5's user avatar
  • 133
0 votes
1 answer
256 views

Make inline uploader (plupload) on options page upload to a specific folder

I’ve set up an options page for my CPT that contains the drag'n'drop upload area (just like Media → Add New). Basicly, I’ve copied all the relevant stuff from wp-admin/media-new.php and it works like ...
mischnu's user avatar
  • 11
0 votes
0 answers
44 views

Blog suddenly can't display .jpg

I’ve been managing https://Barrett.Lang-Learn.org for a fellow who self-describes as technology-illiterate. He recently told me his header image has disappeared. I logged in and went to the media ...
WGroleau's user avatar
  • 115
0 votes
0 answers
41 views

Allow a specific user role I have created to only upload one image to his media library

Hello guys I was following this article but the code doesn't seem to do anything. The last one by Maruti Mohanty is doing something , it doesn't allow any files to upload with an error. Set a maximum ...
Johnda's user avatar
  • 1
0 votes
1 answer
501 views

wp.media issue with selected image

First of all, I know there are many questions related to this question. But what the problem is that they are all related somehow to jquery. But my question implements the vanilla javascript. ...
Raashid Din's user avatar
0 votes
0 answers
56 views

Pre-load images into a new users media gallery

After a user registers on my site, I send them to a form where they create a product listing that requires a featured image. Is there a way for me to have images pre-loaded into a new users media ...
Jack01671's user avatar
0 votes
0 answers
112 views

cant upload media/pictures to my wordpress site, cant upload anything to my database

“test-pic.jpg” has failed to upload. Could not insert attachment into the database. this is the message keeps popping up when I upload any media to my WP site . please help me to resolve the problem.
Hasmik Papikyan's user avatar
1 vote
0 answers
121 views

Display attachments by the ID of the post being edited in the wp.media frame (frontend)

There is a button in the frontend on the post page to upload images. How do I display attachments that are attached to this post in the wp.media frame? How to intercept wp.media's AJAX request for ...
Svetoslav Luchezarniy's user avatar
0 votes
0 answers
48 views

How can i set media attachments to the author of the post or page for already existed posts with attachments

I have been uploading posts for multiple authors in my site and the attachements (photos) are registered all in my account. Is there a way to set the attachements to have the author of the post ? I ...
Honoluluman's user avatar
-1 votes
2 answers
2k views

WP is showing wrong image dimensions

Several times over time I changed sizes of thumbnails WP generate when images are uploaded, always setting bigger size. Recently I set Thumbnail Width 600px width and Medium size Max Width 1800px. ...
Advanced SEO's user avatar
0 votes
0 answers
184 views

Upload Video using wordpress rest api with ionic

Hello I am trying to upload the video to wordpress with ionic app using wordpress rest api I follow this tutorial - https://www.youtube.com/watch?v=wMEkHYjuxSU here is my code uploadFileWP(URL){ ...
Dinesh's user avatar
  • 115
0 votes
1 answer
84 views

unable to write to the database while uploading images

I have a problem with my WP Multisite. My stable version so far is: 5.5.3 (downgraded from 5.6). With version 5.6 and later, I can't download images properly and this is for all my websites under WP. ...
Med Maat's user avatar
0 votes
1 answer
540 views

How to display the Media Library Items Upload date

I have a product image catalogue and i'd like to display the Uploaded date of the image: I can see on the media library it displays on-top of the item: Uploaded on: April 15, 2021 as an exmaple but ...
Someguy's user avatar
  • 11
1 vote
0 answers
409 views

How select multiple document as like media gallery

I want to make a document(.pdf) gallery with multiple selections exactly like the image gallery. So that when I click on a button or something wp.media selection frame will be popup and can select ...
Razon Komar Pal's user avatar
0 votes
2 answers
121 views

upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB

I have configured the upload_max_filesize directive to 64 MB in my localhost php.ini and have my Apache restarted. But why the Media section in my WordPress still showing 2 MB below? Maximum upload ...
Run's user avatar
  • 321
1 vote
1 answer
53 views

Media upload on Wordpress changes title of image

I have a rather random and annoying issue when uploading images for my products. If I upload one item it changes the title to mde or rhrn or a strange variation of letters. I've tried using the bulk ...
Yvette's user avatar
  • 11
1 vote
2 answers
277 views

Audio file's length (duration) is missing from Attachment Details in Media Library [closed]

I'm uploading a different mp3 file to each post as an attachment and using wp_get_attachment_metadata() to print the duration of the mp3 file. Sometimes the response from wp_get_attachment_metadata() ...
Keyslinger's user avatar
0 votes
0 answers
82 views

MIME type not supporting HEIC support type in Wordpress

I am working on wordpress 5 and want to upload HEIC file type extension. But it doesn't work as it give me this error sample1.heic Sorry, this file type is not permitted for security reasons. But i ...
Pritesh Saxena's user avatar
0 votes
1 answer
430 views

RSS audio enclosures have length of zero (podcast duration is missing)

I have had success at creating an RSS feed with enclosures containing episodes of my podcast by simply creating a post and inserting an mp3 file from my media library into it via the robust Add Media ...
Keyslinger's user avatar
1 vote
0 answers
37 views

Rebuild the entire WordPress uploads folder

I have an unfortunate situation in which a client disabled "Organize my uploads into month- and year-based folders" which is what organizes files into a {year/month} folder hierarchy on the ...
TKEz's user avatar
  • 111
0 votes
1 answer
63 views

Why Wordpress suddenly changed sizes of thumbnails?

I'm consistently using 3000x750 images for the standout images for my entries. I've recently added a new post with such image (I'm 100% sure about its size) and I've realized, that for some reason it ...
Spook's user avatar
  • 103
2 votes
1 answer
298 views

How to overwrite wp_unique_filename logic

We are having a problem where uploading images through the media upload tool sometimes times out. Using NewRelic, I've tracked it down to wp_unique_filename, which makes sense I guess because we have ...
Dan Brooking's user avatar
1 vote
0 answers
34 views

Uppload image from another source wp.media

I am writing an extension that will load images from third party sources and embed that image in WP media library. I cannot figure out how to manage wp.media to load such images. How it will work. ...
Pavel's user avatar
  • 113
0 votes
1 answer
367 views

Shortcode for Custom Field of Media Attachment (to use with Featured Images)

I'm using ACF (Advance Custom Fields) for Media Uploads to store location information about photos. When I set a post Featured Image to a photo that has this extra field, I'd like to output the ...
Rob Jackson's user avatar
0 votes
0 answers
28 views

How to get all id_attachment with one loop?

I have some lines of code which shows the url of my wordpress image gallery by means of an id, but I need it not to have to be selected by me, if not that every time an image is added, it is not ...
Joel López's user avatar

1
2
3 4 5
22