September 5, 2013 at 11:40 am #29066September 6, 2013 at 3:04 am #139607September 6, 2013 at 1:19 pm #139608
I have checked the thread and the plugin.
But I fail to see how it can help me set a standard size for all th featured images shown in ur theme
I did little digging and added the code set_post_thumbnail_size( 150, 150, true ); to functions-enfold.php but seems it deprecated.
Please helpSeptember 9, 2013 at 5:41 pm #139609
Use the plugin to first regenerate all of your thumbnails. None of them seem to have actually be generated: http://wordpress.org/extend/plugins/simple-image-sizes/
When outputting the grid you can choose the size of the image being shown by selecting “Choose the preview image size manually” from the Preview Image size dropdown. Then you can choose an image size you want so that they will be consistent. There are of course the WordPress limitations which can do some odd things with images. So its best to use images that are near in size and bigger on both edges than the place they will be displayed.
For your current grid the image container is 248px wide so picking an image with at least that width will keep the image from showing pixelated.
DevinSeptember 10, 2013 at 6:52 am #139610
The best i understand is I have to use the plugin to generate images to my desired size. Also I need to ensure the width of the image is no less than 248px
But my question is … how do I set the newly generated images using the plugin as featured image?
Do this manually will take loads of effort as I have 120+ postsSeptember 11, 2013 at 7:06 am #139611
Afaik there’s no plugin which allows you to set the featured image automatically because it doesn’t make sense in most cases.
WordPress just saves the id of the (full size) image when you set an image as “post thumbnail”. This id will be used to query the url path to the full size image OR to a thumbnail of this image (depends on the theme code).
If you already uploaded “high resolution” images and set these images as post thumbnails you just need to regenerate the thumbnails with: http://wordpress.org/plugins/regenerate-thumbnails/
Afterwards wordpress will use the proper thumbnail size of these images for the post thumbnails. If you want to change the thumbnail size open up and search for /wp-content/themes/enfold/includes/loop-index.php
$current_post['slider'] = get_the_post_thumbnail($the_id, $size);
Replace the $size variable with any custom value like
$current_post['slider'] = get_the_post_thumbnail($the_id, 'full');
$current_post['slider'] = get_the_post_thumbnail($the_id, 'large');
or any other thumbnail size which is defined in functions.php or which you created with http://wordpress.org/extend/plugins/simple-image-sizes/
The topic ‘How to set dimension of feature images set in categories?’ is closed to new replies.