If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
April 3, 2011 at 10:12 pm #3732
but i just wanted to clarify the difference between feature image post sizes of the mainpage or archives from the single page.
i want to keep featured images on the mainpage and archives at 180px (im talking about the larger posts not the 2 column posts) but i when a person clicks on a post i want the single post featured image to be 100% width of the left column eg 560px or so.
in the functions.php it looks like i need to change the following
$k_option = array(‘width’=>180, ‘height’=>180); // big preview pic for full sized posts
from this code it appears that the 180px size affects both the mainpage, archives and single page posts.
is there a way to achieve what im asking? i supposed its a bit like what happens in the habitat theme where single page posts have a larger featured image than in the archive or the mainpage…
thanksApril 4, 2011 at 5:58 am #43498
you can define new thumbnail sizes wif yo like. Just duplicate the ciode you posted above and replace the letter “M” with another one (i.e. “O”). The open up the template where you want to change the thumbnail size and replace the letter M with your letter in following code:
$preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox')
'linkurl' => array ('fullscreen','_preview_big'),
'wh' => $k_option['custom']['imgSize']['M']
));April 4, 2011 at 6:28 am #43499
thanks for that. i will give it a try
will the regenerate thumbnails plugin work for this type of thing for images already imported? i havent used it yet
also, is it possible to make newscast have the featured image above the content and sidebar like in the habitat theme for a single page?April 4, 2011 at 7:04 am #43500
hmm this doesnt seem to be working for me
i change single.php to
$preview_image = kriesi_post_thumb($post->ID, array(‘size’=> array(‘ML’),
‘display_link’ => array(‘lightbox’), // ‘_prev_image_link’ or array(‘lightbox’)
‘linkurl’ => array (‘fullscreen’,’_preview_big’),
‘wh’ => $k_option
and function.php to
$k_option = array(‘width’=>560, ‘height’=>320); // single post image
made a test post with a new uploaded image of some geese
the thumbnail has stayed the same size.April 4, 2011 at 7:08 am #43501
actually dont worry about it, i think i might just delete the preview image and add them manually.
thanksApril 6, 2011 at 4:36 am #43502
The topic ‘change featured image for single post view’ is closed to new replies.