现在位置 >首页 > 代码
+5°
发表于613 天前 Wordpress ⁄ 作者:知更鸟 ⁄ 共 704字 ⁄ 被围观 6,649+
评论最多日志函数代码(带缩略图)
为了方便访问者找到最好的内容,很多博客都会在显著的位置展示最热的文章,也就是评论最多的文章,比如我制作的热点新闻主题,就集成了这一功能。今天再发一个带缩略图的评论最文章代码。 <?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?> <?php while ($popular->have_posts()) : $popular->the_post(); ?> <?php $justanimage = get_post_meta($post->ID, 'image', true); if ($justanimage) { ?> <img src="<?php echo get_post_meta...
阅读全文

Wopus问答

+7°
发表于643 天前 Wordpress ⁄ 转载:原文链接 ⁄ 共 12789字 ⁄ 被围观 4,053+
More and more clients are using WordPress as their CMS. As a designer or developer, you should really get into WordPress coding. To get started, you can read my WordPress theme guide and hacks. Now, I would like to recommend a resourceful WordPress site to you called WpRecipes. This post contains over 20 recipes that I hand picked from WpRecipes. If you have any good WordPress code or hacks that you want to share, feel free to send them over and I will post it. 先粘...
阅读全文
×
腾讯微博