wordpress调用文章列表和评论

作者: 小默 分类: Wordpress交流, 网站建设 发布时间: 2019-04-10 20:17 ė
Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/www.seohave.com/wp-content/themes/TangStyle/single.php on line 19
11,564 人访问
6没有评论
一:评论:
    < ?php $comments = get_comments(array( 'post_id' => XXX, ‘status’ => ‘approve’ )); wp_list_comments(array( ‘per_page’ => 10, ‘reverse_top_level’ => false ), $comments); ?>
二:调用文章列表 < ?php query_posts('showposts=10&orderby=new'); //showposts=10表示10篇 while(have_posts()): the_post(); ?> //这里可以写成你自己需要的样式
  • 本文出自 建站seo运营,转载时请注明出处及相应链接。

    本文永久链接: https://www.seohave.com/579.html

    0

    发表回复

    Ɣ回顶部