Versuche folgendes: in der Artikelvorschau möchte ich zusätzlich zu the_excerpt ein Thumbnail integrieren. Geht aber leider bisher in die Hose, da WP das "Artikelbild" trotz kleinster Definition in voller Größe integriert, was natürlich für´n A... ist.
Wie kann ich hier vorgehen, um wirklich was Kleines zu haben?
Die Archive.php sieht fiolgendermaßen aus:
ZitatAlles anzeigen<?php get_header(); ?>
<div class="container_12 clearfix">
<?php if ( get_option( 'bizzthemes_breadcrumbs' )) { yoast_breadcrumb('<div id="breadcrumb"><p>','</p></div>'); } ?>
</div>
<div class="container_12">
<div class="content_wrap_in clearfix">
<div class="grid_8 content-in">
<?php if (is_paged()) $is_paged = true; ?>
<div id="page_head">
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<?php if (is_category()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_category'); ?> »<?php echo single_cat_title(); ?></h1>
<?php } elseif (is_day()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_day'); ?> »
<?php the_time('F jS, Y'); ?>
</h1>
<?php } elseif (is_month()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_month'); ?> »
<?php the_time('F, Y'); ?>
</h1>
<?php } elseif (is_year()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_year'); ?> »
<?php the_time('Y'); ?>
</h1>
<?php } elseif (is_author()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_author'); ?> »<?php echo $curauth->nickname; ?></h1>
<?php } elseif (is_tag()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_tag'); ?> »<?php echo single_tag_title('', true); ?></h1>
<?php } elseif (is_search()) { ?>
<h1><?php echo get_option('bizzthemes_browsing_search'); ?> »<?php printf(__('%s'), $s) ?></h1>
<?php } ?>
</div>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post() ?>
<div id="post-<?php the_ID(); ?>" class="entry">
<h2 class="title2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></h2> [COLOR=Red]<Hier würde ich gerne das Thumbnail einsetzen>[/COLOR]
<?php if ( get_option( 'bizzthemes_postcontent_full' )) { ?>
<?php the_content(); ?>
<?php } else { ?>
<?php the_excerpt(); ?>
<?php } ?>
<div class="fix">
<!---->
</div>
<p class="post_bottom">gespeichert unter:
<?php the_category(" / "); ?>
</p>
</div>
<!--/post-->
<?php endwhile; ?>
<div class="pagination">
<?php if (function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } ?>
</div>
<?php endif; ?>
</div>
<!-- content-in #end -->
<?php get_sidebar(); ?>
</div>
<!-- wrapper #end -->
</div>
<!-- wrapper-in #end -->
<?php get_footer(); ?>