Questions tagged [media-settings]

The tag has no usage guidance.

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

How to re-house images in uploads/YYYY/MM

My media items are not stored in YYYY/MM subfolders of uploads. Instead, I had cooked up some scheme to ingest posts, but seem to have declined/neglected to organise them that way. So, I've got a ...
user avatar
0 votes
1 answer
46 views

Custom default settings for WP native Gallery Block

I've started with MarkJ's answer - JavaScript included into the block editor. I wanted to control more attributes for gallery than linkTo — the number of columns, cropping, and image size. wp.domReady(...
user avatar
0 votes
0 answers
21 views

Efficient way to move media folder to another folder

The media library is currently organized by months and years .../uploads/2021/09/. I'd like to go without the months and year and use the url .../uploads/ for future uploads. For consistency, I'd like ...
user avatar
0 votes
0 answers
49 views

Wordpress append -1 to the image name

For e.g. I deleted apple.jpg. Image is deleted permanently. After a while, I upload apple.jpg. Wordpress still append -1 to the image name apple-1.jpg. However, apple.jpg is no where to be found. I ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
-1 votes
2 answers
991 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. ...
user avatar
0 votes
1 answer
21 views

Thumbnail images chopped off but not cropped to exact dimensions

In Media Settings I have Thumbnail sizes set to width and height of 150 and "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" is not checked. Since the checkbox is ...
user avatar
  • 31
0 votes
1 answer
444 views

Can't upload format files on media library

I have an issue for uploading .ppsx format on the media library. all the powerpoint format (pptx ppt, pps) can be uploading without problem except the .ppsx format and i don't know why. when i try to ...
user avatar
  • 274
1 vote
0 answers
18 views

Suggested image dimensions Gutenberg Hook

I just migrated to Gutenberg block editor and I simply love it. After migration, I saw a dimension suggestion for images when trying to select the featured image. The problem is that we already have ...
user avatar
  • 11
0 votes
1 answer
206 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 ...
user avatar
0 votes
1 answer
22 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 ...
user avatar
0 votes
1 answer
348 views

How to display the maximum upload size in a WordPress single site?

I'm working on a WordPress single site, where in front end, below a custom made form, where I have a file upload feature, I need to display the maximum upload size. In my local Laragon WAMP setup, ...
user avatar
0 votes
0 answers
33 views

Post images are not displayed in media library

I use an image for a page that is uploaded back in 2014 up until now and back then I uploaded few images as well. But when I looked into the library, I could only find the images that are uploaded ...
user avatar
2 votes
3 answers
3k views

Why "Store uploads in this folder" option is not showing in Media Settings in WordPress

I have two sites running WordPress 4.9.8 On one site I can see "Store uploads in this folder" option on in Media Settings On another site I cannot see "Store uploads in this folder" option in Media ...
user avatar
1 vote
1 answer
272 views

How to add values to media "whitelist_options" in wp-admin/options.php template?

I would like to set default values of the media variables on my multisite. If I want to do this on one site, it's a simple thing, I add values on mysite.com/wp-admin/options.php to the ...
user avatar
0 votes
1 answer
68 views

How to resize image in wordpress from backend? Seems like bug in wordpress

I'm trying to resize images to smaller sizes using wordpress admin. But I have trouble doing it. I have selected an image and opened it for editing. Original dimensions of my image is 255 × 300. ...
user avatar
0 votes
1 answer
1k views

How to create different media uploader frames / filter library depending on a custom action

Here is the thing. I am using the WP media uploader on the frontend. What I need is to have it behave differently depending on a certain action. I am attaching the media in a specific custom post ...
user avatar
  • 351
1 vote
2 answers
1k views

Add Small Image Size to Media Settings

My WordPress (v4.7) site's media settings only shows sizes for Thumbnail, Medium, and Large. How do I add a Small size to it?
user avatar
  • 133
1 vote
1 answer
474 views

Can I stop wordpress generating media sizes

I am using atelier theme on a shop website and I have seen the disk space grow rapidly. In my analysis, I have noticed that Atelier is creating 17 different media sizes when it uploads an image: ...
user avatar
10 votes
12 answers
22k views

How to delete resized (cropped) image uploads and prevent future resizing?

I want to delete all the resized images while leaving the original image. I have more than 20 GB of unused data taking up room on the server. For example: first-image-name.jpg first-image-name-72x72....
user avatar
1 vote
2 answers
2k views

Why are image thumbnails cropped proportionally (not per dimensions)?

For some reason WordPress is ignoring my thumbnail sizes and keeping thumbnails cropped proportionately instead of specific dimensions. Here is what I have in functions.php: add_image_size( 'main-...
user avatar
  • 149
2 votes
0 answers
50 views

Altered media sizes (in dash), not updating to existing images/posts

(I have searched but not found a satisfying answer – bear with me). I have a client that has a website with 1500 posts. Each post consists of ONE image, no text. I have changed to the Oria theme (...
user avatar
  • 121
4 votes
1 answer
549 views

Allowing for multiple template views on the Gallery Settings page when using the Visual Editor

I'm trying to extend this answer by making it possible to switch shortcode attributes from the UI and alter the gallery markup based on those attributes. [gallery owl="true" link="none" size="medium"...
user avatar
  • 9,439
2 votes
1 answer
5k views

How to set CORS header?

I have been accessing media images in a Ruby on Rails application via ajax from wordpress 4.2.4. I am getting following error while accessing the image via ajax. XMLHttpRequest cannot load http://...
user avatar
2 votes
0 answers
168 views

wp.media add context

I have wp.media frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at ...
user avatar
1 vote
1 answer
263 views

Wordpress returns old thumbnail size after changing media settings

I have had a requirement to update a WP build so that the thumbnail size changes from (the default) 150x150 to 500x500. I've amended the size within the Settings > Media and utilised the awesome "...
user avatar
  • 205
4 votes
1 answer
254 views

Add control in image detail panel

I am trying to add a checkbox control in the image details popup (when editing image in a post). I have added the following code in my template function.php but I can't manage to display the checkbox ...
user avatar
  • 141
7 votes
1 answer
841 views

Best approach when modifying the Media Manager

I am trying to edit the Media Manager to allow the selection of a new option in the "Link to" select field. This Backbone template is currently defined in media-template.php <label class="...
user avatar
  • 312
1 vote
2 answers
634 views

Extra Alignment buttons on media uploader screen

I can not comment on an exciting question because my reputation is too low and when I reply inside that exciting topic it will get deleted because it's not a solution but another question so I start a ...
user avatar
1 vote
1 answer
5k views

How do I control video media display sizing with native wordpress player

I was hoping to use the native wordpress video player, but I'd like to 'expand' the video size on the page. Is that possible? I can't seem to make this work. Actual MP4 video size = 640 x 360 ...
user avatar
  • 296
2 votes
1 answer
1k views

Audio Playlist : How to bind events for "track change", "track end"?

I'm customizing native Wordpress playlist echo do_shortcode('[playlist ids="3267,3266,821"]'); I'd like to bind events to detect "track change" and "track end" and do something when those events ...
user avatar
0 votes
0 answers
78 views

How to store and retrieve the attachment alignment?

I am working on a project, where I want to display all image attachments of a post. Getting the URL and size of the images is not a problem, since both get stored in the database, if the image gets ...
user avatar
  • 221
10 votes
1 answer
3k views

Adding more options to the instance of an image. (Attachment Display Settings)

I'm trying to build a simple reusable plugin for image presentation in Wordpress 3.9, and it seems I've hit a brick wall. I would like to be able to add a couple of options to the instance of the ...
user avatar
  • 303
0 votes
1 answer
2k views

WordPress not creating "large" thumbnails

I moved my WordPress installation from my local dev environment (MAMP) to a shared hosting server. Since then I have trouble with image uploads not being processes as before, especially with the large ...
user avatar
1 vote
1 answer
911 views

Alter image meta fields in the Media Library

To improve user experience, I want to make changes to the image meta fields in the Media Library: As demonstrated above, I want to change the Caption field to Source and remove the Alt Text and ...
user avatar
  • 8,589
1 vote
1 answer
388 views

Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?

Is there a way to make sure the "Media Library" tab does not show any images until I start uploading some in the "Upload Files" tab? I am creating a wp.media frame with the following code: var ...
user avatar
  • 21
5 votes
1 answer
3k views

Modifying the media-template.php file, the right way?

The [gallery] shortcode accepts the columns='0' as an attribute so that it doesn't insert any breaks in the HTML between gallery items, however this option is not available in Gallery Settings ...
user avatar
0 votes
1 answer
7k views

Recommended Media Size for Twenty Fourteen

is there a recommended media size for Thumbnail size in twenty fourteen? am trying to sort out my website so that it doesn't serve any resized media on the home page, most of the resized media are ...
user avatar
  • 13
1 vote
0 answers
246 views

How to add custom meta box under Gallery Settings in the "Edit Gallery" popup

I am developing a theme. I want to add option for the user to choose the type of the gallery which he is adding. Will it be a slider, masonry gallery or some other type. I cannot figure it out how ...
user avatar
0 votes
0 answers
485 views

Extract video content from post to display on front page

Well I know how to extract image from post.But what about videos?I want to show first video from post . <?php $args = array( 'tax_query' => array( array( 'taxonomy' => '...
user avatar
  • 591
0 votes
1 answer
302 views

wordpress 3.6 media manager cropping timestamp

I am using wordpress 3.6 with its default media manager, I uploaded an image, and then every time i crop it, it create 3/4 new images in upload directory with different name (adding timestamp in ...
user avatar
  • 107
1 vote
0 answers
46 views

One step picture upload

Each time I upload an image by drag & drop in the Media uploader of Wordpress, I get the options window (text-align, alt, picture name etc...). The fact is I always use the default settings and ...
user avatar
  • 365
3 votes
1 answer
707 views

Change default tab of media manager

Is there a way to change the default media manager tab? I have managed to remove everything that I didn't want to show in media manager, using the instructions from the first post here Add a menu item ...
user avatar
2 votes
1 answer
332 views

Resize the WP media Uploader iFrame

I'm trying to customize the look of the iframe that pops up (media uploader). I've manage to remove some fields etc, but I cannot re-size the frame. Does anybody know how to do this?
user avatar
1 vote
1 answer
160 views

media resize/crop possibilities?

Under admin panel -> media settings there are no minimal width option for thumb or other image modes ex: I would like to crop image widthout distortion -> height 124px and minimum-width 124px and ...
user avatar
1 vote
2 answers
892 views

Is it a good practice to change media settings on theme activation?

I want to change default image sizes when user activates my theme so that the default medium image width is exactly the width of page content (for pages with sidebar) and the large image size fits ...
user avatar
0 votes
2 answers
34 views

Plugin or script to apply updated media settings to all featured images

I need to know if there exists a script or plugin that will add a button the "Settings > Media Settings" that will rebuild all thumbnails to match the current media size settings. The problem this ...
user avatar
  • 3,115
0 votes
1 answer
383 views

Media Manager 3.5 custom options

I need to change the values and hide some of the default media manager Attachment Display settings. Like setting the "Link to" to none, and hiding it so that the registered user can't change it. It ...
user avatar
1 vote
1 answer
2k views

Post type specific upload folder in 3.5

In 3.4 I used the following function to change image upload folder by post type. Different upload directory based on post type in a theme Now it doesn't work anymore in 3.5. Do you have any idea how ...
user avatar
  • 361
0 votes
2 answers
400 views

How to change format of file link (<a url="file_link"> Name </a>) when insert from media uploder

I want change some default wordpress functionality. From Media library when we select a file and press "Insert into page" (other than image file) It inserts in format <a url="file_link"> Name &...
user avatar