The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
17 views

Remove Parent Image Size and Create Different Size [duplicate]

I am trying to generate a different image size of a parent themes functions.php within a child themes functions.php. Here is the code of the parents functions.php // Parent Theme functions.php Code ...
1
vote
1answer
181 views

set_post_thumbnail_size not cropping featured images, but reducing proportionally

In my function file, I set the following: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 50, true ); } And in the ...
0
votes
0answers
51 views

How to set/force the size of the image/attachment uploaded by frontend form?

I have a front end form to let users upload images to my website and i set the post attachment image like this: // find the most recent attachment for the given post $attachments = get_posts( ...
0
votes
1answer
3k 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 ...
0
votes
1answer
40 views

How to strip thumb from widget

I v made a customization on my theme, and some widget display where only title is shown without thumb.But the thing is i dont know how to remove this thumb so i v made a custom thumb size and in ...
2
votes
2answers
439 views

Setting default thumbnails size & creating multiple thumbnail sizes

Two quick questions. How does default thumbnail size work? if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails'); set_post_thumbnail_size( 800, 600, true ); } ...
0
votes
1answer
2k views

Change custom featured image size in twentythirteen child theme

I need to change the post thumbnail size in my child theme. I have read several answers on how to do this in twenty twelve, which is very similar, but nothing is happening when I use similar code for ...
0
votes
0answers
90 views

Why is Wordpress loading a different sized post thumbnail?

I have a custom theme where I'm using post thumbnails as BG images for a slider. The thumbnails and some other info are entered using a custom post type. However, even though I'm uploading 1440x833 ...
0
votes
0answers
189 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
128 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
516 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 ...
1
vote
1answer
2k views

insert post & Upload post thumbnail from the front end using ajax

i have searched & searched for an explenation and have found some answers that seem to be working for other people on this topics but i havent been able to get working. This is my "form" <div ...
0
votes
2answers
240 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
51 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
485 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
3answers
3k 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
928 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
155 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
702 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
289 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
822 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
3k 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
4k views

img width and height attributes being set by get_the_post_thumbnail

I'm working on a custom theme that I've inherited to maintain. At the top of the homepage there is a header area with some images generated by get_the_post_thumbnail. The call to ...
1
vote
1answer
140 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
4k 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
2k 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
3answers
4k 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 ...
3
votes
4answers
2k views

change set_post_thumbnail_size according to post type admin page

I have a few custom thumbnail sizes and obviously one of them is used in the set_post_thumbnail_size, what directly affects the interface in the admin area. What I'm looking to do is to intercept ...
11
votes
4answers
3k 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 ...