2016-03-22 19 views

答えて

0

はいあなたは

<?php 
    global $post; 
    $args = array(
     'numberposts' => 3, 
     'offset'  => 0, 
    ); 
    $myposts = get_posts($args); 

    foreach($myposts as $post) : setup_postdata($post); ?> 
        content 
<?php endforeach; ?> 

だけdocumentationで見ることができます。

関連する問題