Questions tagged [media-settings]
The media-settings tag has no usage guidance.
53
questions
1
vote
1
answer
157
views
medium_large image size not displaying properly on the frontend?
I have added a code snippet to utilize the "medium_large" thumbnail size. This works fine on the back end and I can select this image size in all image blocks. It also seems to output the ...
0
votes
1
answer
380
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(...
1
vote
0
answers
184
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 ...
-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.
...
0
votes
1
answer
71
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 ...
0
votes
1
answer
644
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 ...
1
vote
0
answers
23
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 ...
0
votes
1
answer
523
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 ...
0
votes
1
answer
101
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 ...
0
votes
1
answer
540
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, ...
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 ...
2
votes
3
answers
4k
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 ...
1
vote
1
answer
295
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 ...
0
votes
1
answer
73
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. ...
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 ...
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?
1
vote
1
answer
479
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:
...
10
votes
12
answers
25k
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....
1
vote
2
answers
3k
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-...
2
votes
0
answers
52
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 (...
4
votes
1
answer
569
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"...
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://...
2
votes
0
answers
182
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 ...
1
vote
1
answer
267
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 "...
4
votes
1
answer
267
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 ...
7
votes
1
answer
884
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="...
1
vote
2
answers
672
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 ...
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 ...
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 ...
0
votes
0
answers
82
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 ...
10
votes
1
answer
4k
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 ...
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 ...
1
vote
2
answers
934
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 ...
1
vote
1
answer
404
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 ...
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 ...
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 ...
1
vote
0
answers
248
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 ...
0
votes
0
answers
553
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' => '...
0
votes
1
answer
313
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 ...
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 ...
3
votes
1
answer
737
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 ...
2
votes
1
answer
346
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?
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 ...
1
vote
2
answers
896
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
401
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 &...
0
votes
1
answer
221
views
How i can upload images to another folder?
If I go in Dashboard -> Settings -> Media I don't see field where I can change upload folder. Is it possible now?
For example my website is myblog.tld, by default all media content uploads into ...
1
vote
1
answer
1k
views
add_filter ( 'media_send_to_editor', ...) does not work on wp 3.5
I have a problem with this -probably- abandoned plugin:
<?php
/*
Plugin Name: RV Embed PDF
Description: When you upload PDF and insert a link to it with the Add Media button, it will be ...