How to add featured images to posts from a category
if i understand your question correctly then have a go with Justin Tadlocks get the image plugin, olden but golden and does the default image per category etc.
if i understand your question correctly then have a go with Justin Tadlocks get the image plugin, olden but golden and does the default image per category etc.
Checkout this plugin i developed for use in my theme. http://swiftthemes.com/swiftdynamicthumbs-plugin-to-generate-thumbnails-dynamically-when-needed/
When you link to an external image, WordPress will reference the external URL. media_handle_upload is meant to handle uploaded images that are now living on your server. So unless you’re telling the server to download the image from the external source and save it on your server, media_handle_upload won’t apply. It sounds like you’re building … Read more
It turns out WP got confused because i used the settings> medias screen to also set the “medium” dimensions to 670×290. This redundance seems to disable entirely both the “medium” and the “listing-post-thumbnail” dimensions. Replacing the medium dimension values to 0 and then regenerating the thumbnails solved the issue. Thanks to those who tried to … Read more
This is your theme specific to show featured image in single post view. I think you’re using Modern Style theme, just remove following code from single.php on line 14, now featured images only will be shown on tag/category archive pages (and I think on main page too ). <?php if ( function_exists(“has_post_thumbnail”) && has_post_thumbnail() ) … Read more
Is it possible to add thumbnails to blog post listings independent of images in a blog post set the ‘featured image’ when writing/editing your post; and use the_post_thumbnail() within the loop, in the template. e.g. if there is no image in the blog post, can I add a thumbnail image? dependent on a post image, … Read more
Found a solution – using the plugin “Add from server”, I can re-import the pictures which I attached to the posts when the blog was powered by Dotclear.
I cleaned up the code u have given and it should work as you intend. Let me know if your still having problems. <div id=”slider”> <?php $c = get_option(‘wpns_category’); $n = get_option(‘wpns_slices’); $s = new WP_Query( array( ‘cat’ => $c, ‘posts_per_page’ => $n ) ); if( $s->have_posts() ): while( $s->have_posts() ): $s->the_post(); global $post; ?> … Read more
Updated the answer to match my latest comment: Changing <?php if (the_post_thumbnail()): ?> to <?php if (has_post_thumbnail()): ?> will probably solve things. Also, some must have developer plugins when working with featured images: Regenerate Thumbnails AJAX Thumbnail Rebuild
Can you please add some of the code from your Loop.php file? The code you need to make a featured image show up is: <?php the_post_thumbnail( ‘medium’ );?> If you want the medium size picture to show up, use thumbnail, large or just ” (original size) to show other sizes. Just to be sure, have … Read more