Tagged Questions
0
votes
0answers
14 views
the_post_thumbnail(“size”) returns same image for all sizes except thumbnail
I've got 3 default image sizes set up in "Setting > Media Settings > Image Sizes"
However, when I use anything but "thumbnail" as the image size parameter in the_post_thumbnail(), it returns the full ...
2
votes
1answer
21 views
How to remove thumbnail sizes for specific post type on a child theme?
The theme I'm using includes a slideshow that generates an additional 4 image sizes for every image that is uploaded. I don't need to have all those images being generated for every image.
Is there ...
0
votes
1answer
56 views
How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
please i am wondering if there was a plugin or hack that enables me to append a nice looking thumbnail for each post or page i publish on my blog.
Currently, i am able to add the featured images but ...
0
votes
2answers
50 views
Resizing old post thumbnail images
In my functions.php I have defined the following:
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 475, 475, true );
I have used the Regenerate Thumbnails plugin to regenerate the ...
1
vote
0answers
50 views
Save Thumbnails From wp_oembed_get Function [duplicate]
I'm using the wp_oembed_get function to display embedded videos on a site I'm working on, what I'm trying to figure out is how I can use wp_oembed_get save the thumbnail of the embedded video to the ...
0
votes
3answers
149 views
Setting post thumbnail sizes in template file and functions.php
For my post I have a box for the post image and the size of the box is 214 x 73. I want the image to fit the width of the box and have it cropped at 73px height.
This is what I have so far in my ...
1
vote
2answers
1k views
Can't get image size set with set_post_thumbnail_size() function
I have a problem with set_post_thumbnail_size() function, which seems it doesn't work. Or at least it doesn't work correctly.
I have set a thumbnail size 75x75px in WordPress settings under the media ...
1
vote
1answer
547 views
Wordpress fails to auto crop featured images
I set 2 crop sizes in the functions.php file.
// Setup Post Thumbnails
// -----------------------------------------------
add_theme_support('post-thumbnails');
add_image_size('imagePost-thumb', 970, ...
0
votes
1answer
106 views
Can't change image size from post “Show current page featured image in sidebar”
I added the exact code that you offered in the post Show current page featured image in sidebar. The featured image is displayed, but the size of the image is unaltered from the original.
I am ...
1
vote
2answers
303 views
Set Post Thumbnails in Percents
I've built this responsive site on WordPress and got a little curious as to how I can set the post thumbnails in percentages. Any help would be much appreciated.
0
votes
2answers
221 views
How can i make this in the_post_thumbnail?
if I add this code in my theme function.php
add_image_size('thumb' , 130, 65, true ); // Thumb
add_image_size('max' , 610, 305, true ); // Maximum
add_image_size('min' , 270, 135, true ); // ...
1
vote
1answer
546 views
Custom Image Thumbnails of different sizes
I have a post type which contains custom fields for uploading images of different types for a portfolio site.
For example: (logos, websites, print-ads, etc...).
I plan on uploading images of all ...
1
vote
1answer
879 views
the_post_thumbnail() Custom sizes not display correctly
I'm trying to display wide image icons from the_post_thumbnail() function. I'm using 'true' value for cropping, but they are not cropped well... I get some strange results with different sizes (I'm ...
1
vote
1answer
107 views
Wordpress thumbnail settings change
I have a very large Wordpress image bank (over 600 images, all in use...!) and a new development will mean that i would like to change some of the thumbnail settings.
I have at the moment
...
3
votes
3answers
2k views
set_post_thumbnail_size in percent, not pixels?
I've created a new custom post type and I need the post thumbnails or featured images generated by the get_the_post_thumbnail() function to be set in percent, rather than pixels, as I'm using a fluid ...
2
votes
1answer
1k views
How to create thumbnails with a fixed width, so all of them will have the same width?
right now, a thumbnail will be either 150px in height or in width, depending if it's landscape or portrait. Is there a way to make them always the same width and scale them in height accordingly, ...
1
vote
2answers
3k views
Featured image always rendered with 198px of height?
I added the following to my functions.php file:
set_post_thumbnail_size( 500, 500);
I enabled featured image (support => 'thumbnail') in a custom post type a created (called Page Content).
When ...
8
votes
3answers
2k views
add_image_size() for specific Post Types
set_post_thumbnail_size( 80, 80, true ); // true for all post types
Suppose I have two post types in play on my blog: Post, Video and Product. I may want a 80x80 image size for my posts, but 100x100 ...