📌  相关文章
📜  wordpress have_posts 不工作 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:15.556000             🧑  作者: Mango

代码示例1
//As per my understandings of your issue:

//You are not querying posts you need to show. Use wp_query() to query your posts before loop.

$wp_query = new WP_Query(array('posts_per_page'=>-1));
while ($wp_query->have_posts()) : $wp_query->the_post();
    //your code here
endwhile;