Create thumbnail size only for a few images?

Yes, you can choose to regenerate the thumbnails for specific images. You have 2 options. 1- Create a simple plugin Generating thumbnails is done via the wp_generate_attachment_metadata() function, which you can use to generate thumbnails manually. To do so, make a simple plugin that loops through a couple of attachment IDs and generates thumbnail for … Read more

Post thumbnail not working after regenerate

Look at the wp-content/uploads/ directory. Does your cropped image exists there? (e.g. myimage-185×185.jpg). If not, you could try to call add_image_size() on the init action hook. functions.php function wpse27579_addImageSizes() { add_image_size(‘thumbnail-gallery’, 185, 185, true); } add_action(‘init’, ‘wpse27579_addImageSizes’);

Featured image for first post only

You can use the_post_thumbnail() to output the thumbnail image directly. <?php $count = 1; ?> <?php while (have_posts()){ the_post(); ?> <article id=”<?php echo $post->post_name; ?>” class=”post<?php post_class(); ?>” itemscope itemtype=”http://schema.org/Article”><?php if ($count == 1 && has_post_thumbnail( get_the_ID() ) ){ the_post_thumbnail(‘blog-thumbnail’, array(‘class’ => ‘banner’, ‘item_prop’ => ‘image’)); } $count++; ?> <header> <h1 itemprop=”name”><a href=”https://wordpress.stackexchange.com/questions/35617/<?php the_permalink(); ?>” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)