Questions tagged [media]

An image, audio or a video comprises a media.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 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
10 views

How to add gallery images to custom post from frontend [closed]

I want to add functionality of gallery images where user can add the images for the gallery which will be attached to the custom post type. I need to do this with help of Ajax
0
votes
0answers
8 views

Wordpress Multisite images randomly gets 404 error

we have a Wordpress multisite and the images on the subsite randomly gets 404 errors (not all of them). When you upload multiple images in the media library, some will work fine while others will get ...
0
votes
1answer
19 views

WordPress image title attribute becomes permalink? [duplicate]

I'm managing a WordPress site with a strange problem. When images are uploaded to the media library, a page is being generated with a permalink that uses the image's title attribute. For example, if ...
0
votes
0answers
13 views

Importing content results in “file not found”

When I try to import WXR files via the Wordpress importer, the import often results in a 'File not found' page. It appears this might happen when the content to be imported is significant, but for ...
0
votes
0answers
3 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

Default media uploader is not showing in wordpress website

There is a custom post type events in the website. When I create a new post under events i am facing issue with media uploader When i tried to upload the featured images in the english version of the ...
0
votes
2answers
23 views

Unable to add logo or header [closed]

I want to add a logo on my WordPress website by customizing the theme "Bard", but every time I select an image from my library, it leads to a blank page. The same happens with the header image. And ...
0
votes
1answer
11 views

How to migrate post media from stand-alone to multisite build

We have a stand-alone wordpress site we're migrating to a multisite build. The two builds are on two separate servers, but are using the same domain. We're currently accessing the multisite build by ...
0
votes
0answers
189 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
15 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 ...
0
votes
1answer
18 views

Media Library not loading

I am Currently Experiencing some media file upload issues with WordPress within pages or posts. Adding media in the media section does not have this problem. Troubleshooting the Console shows some ...
0
votes
0answers
12 views

How to add media attachments for the custom post type in WordPress admin panel

I need to implement functionality in the admin panel in such a way that I can add images for the gallery of particular custom post type also I would be able to view/edit the all the images uploaded ...
1
vote
0answers
12 views

adding images column to admin edit columns not working for SVG

I added the ability to use SVG as graphics on my site. They are showing up fine on the front end, but I'm having 2 issues on the backend. The problem is that I want to show post thumbnails on the ...
2
votes
0answers
25 views

How to re-arrange media uploaded using : media_handle_upload() as per year / month

I have been facing this issue that all the new media files are getting uploaded to single folder which was auto-generated during initial site development. Now since all new images are getting uploaded ...
1
vote
0answers
20 views

How to upload media to a specific folder without a plugin in Wordpress?

Is there anybody who knows an article that explains and shows a code about creating our own plugin for organising media library with folders in the admin? All media that I upload goes in the wp admin ...
0
votes
0answers
13 views

Is there a way to set up an image custom field to function as a category field with a predefined photo bank?

I would like to know how can I create a predefined image bank by using Jetengine taxonomy or any other way/plugin. My main purpose is to use Forminator plugin post create template so that the user on ...
0
votes
0answers
35 views

How to extend an existing (Gutenberg) block

One of my Wordpress sites has a custom field for media which contains the credit for the media item. (Something like "Photo by John Doe".) Before Gutenberg, I overwrote the default shortcode which ...
0
votes
1answer
28 views

WP media upload issues

I've come across a lot of people facing this issue that was eventually solved by file permission. I'm getting this error: The uploaded file could not be moved to wp-content/uploads/sites/4/2019/...
0
votes
0answers
23 views

Uploading Wordpress images to a different server

I have two servers, Server A contains all of the site files, Server B contains the uploads folder. All pre-existing images are appearing correctly as you can see here : https://dcworld.org.uk What i ...
0
votes
0answers
9 views

upload permissions for imported users

I re-created a WP site and imported users from the old site to the new; they all have their own profile with pics, etc. However, the only way people can upload media is if I change the permissions of ...
0
votes
0answers
16 views

Use image block functionality in a custom block

I'd like to display an image that my block creates. Ideally I'd like to allow the user to resize and crop the image, etc., but not allow them to change the image to another one in the media library. ...
1
vote
2answers
37 views

Easy way to delete 70k posts and attached media?

A plugin created lots of posts that I now need to delete. They are targetable by category (e.g. Tweet). Many also have attached images. I wrote a php script for it*, but without pagination it gets ...
0
votes
1answer
22 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
33 views

Wordpress uploads autocreate folder every month

In start of every month WP creating folder with month number, like /uploads/2019/11, and it's creating with ROOT, so I dont have permission to write it. If I delete it, and then it's creating when I ...
0
votes
0answers
32 views

wp-cli wp media regenerate --only missing deletes unused sizes?

I just ran wp media regenerate throught 200k images... thing is I have 400k, and the range command is not working (200000 400000 | xargs ***) If I use wp media regenerate --only missing will it ...
0
votes
0answers
19 views

WordPress Media After Migration

My problem is that I migrate a Joomla website to a WordPress website and I want my media files to be located to on a server other than my WordPress server. For example: server A is WordPress and ...
0
votes
0answers
23 views

Empty media library on main site after multisite setup

I've started with a single WordPress site, inserted some posts and images. Due to the evolution of it I feel the need to set up a multisite for multi language purpose. After the setup all the media ...
0
votes
1answer
38 views

Media Library Mess After FTP … /uploads

I've got a Media Library mess on my hands. Transferred old site to staging server for redesign and uploaded large .../content/uploads via FTP after I was unsuccessful in importing media files thru the ...
0
votes
1answer
30 views

Upload User Avatar from android to Wordpress using Rest API

I am developing an android app that give users ability to browse , register, login, post and comment to my wordpress blog using Rest Api . I am trying now to add a way for users to update their ...
0
votes
0answers
29 views

Hide all files from specific subfolder in Media Library

I use a subfolder /pdf/ in the Uploads directory, in which specific PDFs are added via another plugin: Example: /wp-content/uploads/pdf/filename.pdf Is there any simple way to hide all these files ...
0
votes
0answers
9 views

How to serve scaled images for External Media?

I am using External Media Without Import Plugin to use external source media which saves my hosting storage space. Now I want to serve scaled images to optimize website speed. Please someone helps ...
2
votes
0answers
63 views

Wordpress API returns empty page when page is less than X-WP-TotalPages

I am querying in the Wordpress API for all pages of media attachments. I am going page by page. I have about 5800 pages and when I hit pages 50-53 they return a blank or more of a [] but it is a ...
0
votes
1answer
42 views

Big file upload give HTTP error

Just, when I go to Add New (/wp-admin/media-new.php) in Media menu, when I choose a big file, about 30 mb, upload progress bar stuck on 100% and give me an error in console: load-scripts.php?c=0&...
0
votes
0answers
15 views

wp_update_attachment_metadata with a new filesize?

This question is related to this other problem i posted some minutes ago: wp_generate_attachment_metadata is creating an empty array I'm making a new post because the argument is a little different. ...
1
vote
0answers
56 views

wp_generate_attachment_metadata is creating an empty array

I'm making a custom wp plugin for image optimization. I'm at the point that you choose the image, the script starts to optimize and put the new image in the upload folder. The problem is that i can't ...
0
votes
0answers
12 views

Media selection and multiple rows with jquery?

I need to make a WP plugin that would have: A WP-Admin page for doing stuff. In this page you need to have a row with a button that open the media gallery popup, where you can choose an image. In the ...
1
vote
1answer
24 views

Enabling users to upload files

I have a page template, where users can upload images. I use this piece of code for opening modal for media (js; only part of a code): image_frame = wp.media({ title: 'Select Media', multiple : '...
1
vote
1answer
25 views

How to change image atributes right before an image to be saved?

I have an installed plugin to import XML content, but it can't change some meta-data of the new image that will be saved. For example, I'd like to intercept the action of saving an image BEFORE its ...
0
votes
0answers
15 views

Disable media items from attaching to page once uploaded

I am wondering if there is any way this can be done? Basically disable the function that attaches media items to the page they were uploaded to. E.g. When I upload an image to the home page, in the ...
0
votes
0answers
104 views

Media library filter 'Uploaded to this post' missing in Gutenberg's image insert modal

End goal: Get the select menu input box back to allow a user to filter results. "Uploaded to this post", "Mine", "Images", "Video", etc. while inserting a Gutenberg Image block; not a gallery. I'm ...
1
vote
1answer
10 views

Can I change the URL of a video, or upload a video to a specific URL?

Let's say a video has been uploaded to: https://www.example.com/wp-content/uploads/2019/08/2017-12-21_XXX.mp4 But the URL has to be: http://www.example.com/videos/12/2017-12-21_XXX.mp4 Is there ...
0
votes
0answers
7 views

Problems styling Media Gallery - UI doesn't appear to affect display

So, we recently got our new site built with Underscores, SiteOrigin PageBuilder, and ACF. The issue that we're having is that something in the configuration is wrong and we're having problems adding ...
1
vote
0answers
180 views

move_uploaded_file() not working on wordpress front end

I have working code that uploads an image from the front end and sets it as a featured image and custom field photo for a custom post type but I am unable to figure out how to set the upload path. ...
1
vote
1answer
23 views

'An error occurred in the upload. Please try again later.' for users with different roles

The problem seems to be quite common, yet most of the solutions on the net are nothing to do with my issue. So I have custom post type where on the front end users can add a post and upload an image ...
0
votes
0answers
12 views

rescale too big images when downoaded

I am using download_url(), and wp_handle_sideload() to download images from a json feed. I need to check if the images are bigger than 4000px wide, and if yes, then scale it down. this is my ...
0
votes
0answers
13 views

How can post attachments be hidden in the media selector

Is it possible to hide post attachments in the media selector e.g. while inserting an image into a post? This is possible on the Media page, but not on the insert media modal window.
0
votes
0answers
11 views

Force user to input image caption when uploading an image

How can I force the user to input an image caption when uploading a picture via the Add Media button in the document edit view? See picture. It should not be possible to upload an image without a ...
0
votes
0answers
7 views

Import changes the ids of medias

I have an export/import file with multiple medias Example: <title>media-1</title> <link>my-site/media-1/</link> <guid isPermaLink="false">my-site/wp-content/uploads/...
0
votes
0answers
19 views

Uploading an image to the media library causes problems

I'm currently trying to upload an image to the WordPress media library programmatically. The problem is, that when I check the media library, there is no thumbnail showing up and the file size is also ...