Hallo,
habe ein problem, ich habe ein widget was mir "recent, popular, comments" posts anzeigt..
problem bei der sache ist, dass ich unter "popular" posts, die am meisten angeklickten posts angezeigt haben möchte, aber es zeigt mir die letzten geposteten posts. Und ich weiß nicht weiter.
das steht in der .php:
Zitat<div id="popular-tabbed"> <ul> <?php query_posts("showposts=$recentPostsNumber"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php global $post; $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?> <?php if (($thumb == '') && (get_option('glow_grab_image') == 'on')) $thumb = catch_that_image(); ?> <li> <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=38&w=38&zc=1" alt="<?php echo(the_title()); ?>" /></a> <h4><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php truncate_title(24); ?></a></h4> <p class="postinfo"> on <?php the_time(get_option('glow_date_format')) ?></p> </li> <?php endwhile; endif; wp_reset_query(); ?> </ul> </div> <!-- end popular -->