Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

An image, audio or a video comprises a media.

0
votes
0answers
14 views

How to Show Media Library Options on front end

This Back end This Front End You can see the Crop Image option is not visible on front end library section i want that crop button available on front end too. ( using mannual crop plugin for that ...
0
votes
0answers
5 views

Customize media uploader by user role

I am having a media uploader like below. I want to remove the sidebar on the left so that only portion below the visible. It can be done with css but i hoping that that there is some better way to ...
-2
votes
0answers
12 views

How to fix, Zoom in on mobile view? [duplicate]

When we open website in mobile then open zoom in. How to fix this problem? I am using - <meta name="viewport" content="width=device-width, initial-scale=1.0">
0
votes
0answers
13 views

Get Avatar Url Weird Result and Parse Avatar URL From get_avatar() Not Working

simple task here. I need to get the url of my user's avatar so I can use it as a background-image. I tried get_avatar_url() but it oddly always gave me the wrong url, going to a gravatar domain. I ...
-2
votes
0answers
20 views

Why website open zoom in on mobile? How to fix? [closed]

I am already used meta tag viewport <meta name="viewport" content="width=device-width, initial-scale=1.0">
0
votes
0answers
38 views

How to fix this function?

I want my WordPress and Woocoomerce auto permanently delete media attachment when the image have been delete on the post and update. I refer to this page Delete post with all files attached to it ...
0
votes
1answer
8 views

Media uploads error

I am very new to this and just created my site yesterday. Suddenly I can’t upload any photos and an error is being displayed ‘An error occurred in the upload. Please try again later’. I saw a ...
0
votes
0answers
12 views

Add Media Dialog In WordPress Post Screen Too Confusing For My Users

How can I edit the contents of the Add Media box (shown above) in the WordPress post screen? All these options are unnecessary for my users, and I need to edit the short-codes as well, but it needs ...
0
votes
1answer
13 views

How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?

This alert shows when you click Delete Permanently on a media (attachment) item. My Goal: I want to change the text of the alert if the current user has a certain custom meta value. Also, changing ...
1
vote
0answers
17 views

add media button is not working

Since last week I am experiencing that I am unable to add media to a portfolio item in the Parameters and Options field. When I click the button, nothing happens. When installing the theme on a sub-...
1
vote
0answers
9 views

Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?

How can I tag, taxonomize and search native media? I believe my obstacle is my failure to think "the WordPress way". Building my own plugin or theme code, I am looking to achieve the following ...
0
votes
0answers
143 views

WordPress and Cloudconvert

I'm a very basic WordPress user (I can handle some basic programming) wanting to create a website where people can just go in and upload a file to convert it to something else i.e. word to PDF. After ...
0
votes
0answers
13 views

Importing existing s3 Media into WP

I'm just beginning to learn my way around WP development, having just taken over development of an old non-WP site that had 1000s of media (mostly audio) files stored on S3. For new uploads I was ...
0
votes
1answer
25 views

Can you limit the size of media files being uploaded not using php.ini?

Im facing a problem, we've got several clients who really don't care about what size images they upload but then come to use later in time to ask why the site is slow. So as a solution I would want ...
0
votes
1answer
32 views

Media and all images disappeared from my wordpress site

I only added a plugin call WPFreshstart 5 to my site and later when I went into my site I noticed all media library was gone and all images thru out my site were gone even the widget area. I deleted ...
0
votes
0answers
27 views

How to move medielement scripts to footer?

This seems like a new thing since 4.9 https://make.wordpress.org/core/2017/10/30/mediaelement-upgrades-in-wordpress-4-9/ In previous versions medielement and dependencies were all loading in footer ...
0
votes
0answers
12 views

WordPress Media Uploader set library

I am trying to reuse WordPress Media Uploader and I need to change library. I have looked into the console and this option seems to be under: uploader.options.library.type however setting this does ...
0
votes
1answer
65 views

Uploading dwg files to wordpress

I'm trying to upload files with dwg extension to media but when I do that I get an error telling me that uploading files with this extension is not allowed. I tried to upload them via ftp but I cannot ...
1
vote
3answers
28 views

HTTP Error when uploading files above 7mb unless using GD Image Editor

I noticed recently that when uploading files larger than 7mb to a Wordpress site that I developed, I get an HTTP Error. I've checked some of my PHP variables, and have verified that memory_limit is ...
0
votes
0answers
16 views

Wordpress limit already uploaded files access by capability

For quite some time now, I've been developing themes from scratch to private clients using wordpress, some woocommerce, etc. Now, I can't figure out how can one protect already uploaded files by ...
0
votes
0answers
61 views

How to upload multiple images using WP rest API to media?

I'm using JWT Authentication for WP REST API plugin and WP REST API Controller plugin Take this rest api for example, it's an api for this post, and here's the media I understand everything about ...
0
votes
0answers
24 views

Issue with upload.php with media

I'm having trouble uploading any images, files etc... on to the CMS. When visiting the Media Library the loading spinner will just constantly load without anything being loaded up. When I do it just ...
3
votes
1answer
36 views

media_handle_upload for local files?

I am creating an image on the server and storing it in a tmp folder. I would like to run a php file that takes this image, stores it in the default media directory structure and attaches it to a post ...
0
votes
0answers
50 views

Frontend Media Upload throws TypeError mediaelementplayer

I am trying to add a media upload button on frontend. Here is my code that enqueues media and my script file function pc_scripts() { wp_enqueue_media(); wp_enqueue_script( 'pc_custom', ...
1
vote
0answers
22 views

wrong media url in wordpress

Having the weirdest issue in a clean Wordpress installation. The media urls are being written with "hhttp" instead of "http". so, for example: http://dev.mysite.com/wp-content/uploads/... would ...
1
vote
2answers
34 views

Select image sizes you want to be uploaded

Would it be possible to be able to select the image sizes you want to be uploaded when you upload an image? E.g., I have these image sizes: // Set Media Sizes set_post_thumbnail_size( 864, ...
0
votes
0answers
221 views

Image upload to media library fails. Folder won't create, database insert fail, XAMPP Windows

Environment: The WordPress site is on my local laptop, 4.9.6. Windows 10, XAMPP installation, PHP 7. The procedure works fine on the remote production server with LAMP. Problem: I'm trying to upload ...
0
votes
1answer
30 views

Attaching an upload to a user

Is there any way with WordPress that a user could upload a file (pdf or jpg, for example) and have that image 'attached' to their account? Ultimately, I'd like to be able to have a Gravity Forms ...
1
vote
1answer
31 views

Rest API rename media

I've been able to upload images using the REST API but the names are wrong right now and I was thinking to go through all of the products I have and rename the images. Since I have more than 500 ...
0
votes
0answers
14 views

Applying “Organize uploads into month and year” after they have been put into one folder

So I made the mistake, a long time ago on a old site, to NOT organize uploads into month and year. I now have 50k+ files in the same folder and it is causing big problems. Is there any way to sort ...
0
votes
0answers
26 views

modify wordpress caption shortcode

I need to modify the Caption shortcode so that it renders the caption wrapper regardless if there is any caption text present. I've modified my Media content type with a custom field called Credit. ...
0
votes
0answers
9 views

How do I allow users to download file types other than official iana mime types?

I would like my users to be able to download a non-standard file type, in this case a civ5 map file. I see posts about adding iana-approved file types by editing function.php to add mime_types, but am ...
0
votes
1answer
18 views

Media URL slugs without uploads folder path

I am trying to emulate the appearance of multiple subfolders of files in the installations root directory, but these folder names will conflict with pages that need to be the same name. In other ...
0
votes
1answer
48 views

Media files not loading

I'm doing local development with WP-Turkish and Settings/Media does not show media upload path, so I can not load media.
0
votes
0answers
19 views

Custom Gallery plugin uploading to different dir, and post to page

I am trying to create a custom gallery plugin for my wp theme. So far I have found snippets on how to include the media uploader to my plugin, and also change my upload directory only for this plugin. ...
0
votes
0answers
23 views

Specify minimum image dimensions when using wp.media

I want to limit an image picker to images that are at least 650x650; how can I do this? I haven't been able to find any reliable documentation on wp.media. Current code: const media_buttons = ...
0
votes
1answer
80 views

Create featured image from a remote url when creating a post

I am trying to scrape an image from a remote url that is added using a text field in Advanced Custom Fields (hardcoded in the example below), but I don't even know if the process I am using is correct....
0
votes
0answers
15 views

JWPlayer and mediaelement conflicting on Wordpress

I was hoping somebody would be able to help me. Written a shortcode for my videos using JWPlayer, but I get "double" styling with JW and mediaelements. Any ideas? <div id="verboPlayer"></div&...
0
votes
2answers
31 views

Help Adding filter to Add Media button for custom post type

I'm trying to add a filter to the add media button for a custom post type. I'm using add_filter('media_send_to_editor') and it work's fine, but I'm having difficulty finding a way to determine the ...
0
votes
0answers
14 views

Media library uploader ( set featured image, or general selecting image ) view in LIST, never GRID

In a WP installation I have to work on, I found that when I click on "Set Featured Image" on a post, the Media Library popup appears, with a grey thumbnail, but no thumbnail of the uploaded images. ...
1
vote
1answer
196 views

How do I get images (with a thumbnail preview) to show in search results?

The Short Version I've constructed a Wordpress site (Gazette theme base) with lots of image media. All have descriptions, captions, and titles but do not show up in search results; using Relevanssi I ...
0
votes
0answers
16 views

Media library and Upload media problem

I have a client who is running the metro pro theme on genesis and for a week now the client has not been able to add media in blog posts. I have done all the usual like deactivate all plugins, ...
0
votes
1answer
55 views

Import download attachment from woocommerce product

I am doing a migration from a wordpress/woocommerce website, I've successfully export/import all the data except one thing : the download attachment file from my woocommerce product I'm using the wp-...
0
votes
0answers
39 views

Frontend media shows “An error occurred in the upload. Please try again later.”

Really struggling with some code here. I have a site where I've created a custom role 'Agent' and an agent needs to be able to upload images via a frontend form. I've managed to get the code working ...
0
votes
1answer
244 views

Pictures won't display in media library and also won't show preview when selected

I have done the plug in, check permissions (upload folder which contains files for the media contents is 755), clearing cache (there was none, apparently), disable any extra plug-ins, check and ...
0
votes
0answers
20 views

TwentySeventeen $content_width not updated in admin

I've read many answers to the problem of modifying TwentySeventeen's content width, but this one aspect is eluding me. I have the following in my child theme's functions.php function ...
7
votes
3answers
220 views

How to add a custom field to the media screen (image/gallery)?

I’m trying to add a custom field to image and gallery edit screen. I’m aware there are similar questions here, although answers either don’t work with the current version or they add field only to ...
3
votes
3answers
116 views

WP Rest API - Upload media without saving attachment post

I need to hook after file uploaded to server, get the file path, and then prevent WordPress from saving the attachment post. I found this filter add_filter('attachment_fields_to_save', '...
1
vote
0answers
19 views

Move files from flat upload directory to organised by year / month

I'm upgrading a site where there are 57,426 files in the /upload directory. I need to sort them as /upload/year/month/filename.ext because this flat non-hierarchical dir is a mess. There's no image ...
1
vote
0answers
31 views

My Media Library is broken across all my subsites

After installing a bad beta plugin, my Media Library is broken across all my sub-sites. I’ve set my upload directory under Sites > domain.com > Edit Site > Settings > Upload Path to wp-content/blogs....