WordPress如何调用指定的分类目录文章?其实这个问题很简单,可以通过以下代码来实现。
使用方法:将以下代码添加到您想要显示的地方,并修改相关参数。
1, // 分类ID posts_per_page => 10, // 显示篇数 ); query_posts($args); if(have_posts()) : while (have_posts()) : the_post();?> <a href=/cms/"> //标题post_content)), 0, 170,"……"); ///如果文章编辑中没有摘要,自定截取文章内容的字数作为摘要 } ?>