3
我可以使用:WordPress的(WordPress的熱門職位插件)查詢
<?php
if (function_exists('wpp_get_mostpopular')) {
wpp_get_mostpopular('range=weekly&order_by=views&limit=8');
}
?>
裏面的自定義模板(查詢職位內),使查詢與自己的模板輸出:
<?php query_posts(????????); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="myclass">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_the_post_thumbnail($post_id, 'thumbnail'); ?></a>
</div>
請幫我這個,所以我不必編輯插件和插件的CSS,而只需通過此插件查詢帖子即可。
謝謝。
插件:http://wordpress.org/plugins/wordpress-popular-posts/