[Plugin: WordPress MU Sitewide Tags Pages] Several sizes for Post Thumbnails?
-
I think the Sitewide tags plugin is a great and useful plugin. I’m now working on a site that isn’t online yet, and it’s going great, partly because of this plugin.
At the moment I’m trying to find out how to get several sizes of post thumbnails.
All subblogs on my website automatically generate thumnails in several sites by adding a code to the functions.php from the themes they use.
functions.php
add_theme_support( 'post-thumbnails' ); the_post_thumbnail( array(521,246) ); set_post_thumbnail_size( 521, 246 ); add_image_size( 'meest-recent-voorpagina', 520, 250, true ); add_image_size( 'minder-recent-voorpagina', 235, 110, true ); add_image_size( 'bovenbalk', 70, 50, true ); add_image_size( 'zijbalk', 100, 60, true ); add_image_size( 'single', 225, 250, true );
In theme the featured images are displayed with the normal code like
<?php echo '<a href="', get_permalink(), '">'; if (has_post_thumbnail()) { the_post_thumbnail('meest-recent-voorpagina'); } else { echo '<img src="', get_bloginfo('template_directory'), '/images/noimage.png', '" width="520" height="250" alt="logo" />'; } echo '</a>'; ?>
or
<?php echo '<a href="', get_permalink(), '">'; if (has_post_thumbnail()) { the_post_thumbnail('minder-recent-voorpagina'); } else { echo '<img src="', get_bloginfo('template_directory'), '/images/noimage.png', '" width="235" height="110" alt=logo" />'; } echo '</a>'; ?>
The theme of the main site uses all this sizes of thumnails (depending on the position of the post). I’m looking for a way to integrate all this sizes to the post data of the post that is copied by the Sitewide Tags plugin. I noticed it included the ‘thumbnail_html’ with the default 150×150 size. Are there any tips and tricks to include the other sizes?
http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/
- The topic ‘[Plugin: WordPress MU Sitewide Tags Pages] Several sizes for Post Thumbnails?’ is closed to new replies.