连锁系统
您当前位置 :首页 > 连锁系统 >
$cat_id, // 分类ID 'posts_per_page' => 1, // 每页显示的文章数量 'orderby' => 'date', // 按日期排序 'order' => 'ASC', // 升序 ); $cur_post = get_posts($args); if ($cur_post) { $content = $cur_post[0]->post_content; // 文章内容 echo $content; } else { echo '文章不存在'; } // 释放查询结果 wp_reset_postdata(); ?>