Can I refresh the thumbnails programmatically?

You may want to look at the plugin Regenerate Thumbnails by Viper007Bond. Basically, this is how to do it: function regenerateThumbnails() { $images = $wpdb->get_results( “SELECT ID FROM $wpdb->posts WHERE post_type=”attachment” AND post_mime_type LIKE ‘image/%'” ); foreach ( $images as $image ) { $id = $image->ID; $fullsizepath = get_attached_file( $id ); if ( false === … Read more

Get featured image on Blog Index

if you are referring to the ‘page for posts’, then try (only relevant section of your code shown): if (is_home() && get_option(‘page_for_posts’) ) { $img = wp_get_attachment_image_src(get_post_thumbnail_id(get_option(‘page_for_posts’)),’full’); $featured_image = $img[0]; } else {

Post thumbnail alt title

It is necessary to set an alt value for all of your images, in case a browser can not load the image or the visitor is using screen reader. You have two options. Either use the featured image’s caption (which can some times be blank) or use the post’s title as alt. You can get … Read more

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