我在将标题显示为WordPress功能中的链接时遇到问题.
如果我这样编码:
function my_popular_posts($count) { $query = new WP_Query( array( 'orderby' => 'comment_count', 'order' => 'DESC', 'posts_per_page' => $count)); if($query->have_posts()) { echo '
No popular posts found
"; } }
在运行时,链接显示为".the_title()"
如果我这样编码:
echo '
它将显示标题,但不显示链接.
有任何想法吗?我们将不胜感激.
日Thnx!