📜  有post wordpress - 任何代码示例

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

代码示例1
if ( have_posts() ) :
    while ( have_posts() ) : the_post();
        // Your loop code
    endwhile;
else :
    _e( 'Sorry, no posts were found.', 'textdomain' );
endif;