Answers for "wordpress get posts get all posts"

1

get all posts

$args = array(
  'numberposts' => 10,
  'post_type'   => 'book'
);
 
$latest_books = get_posts( $args );
Posted by: Guest on March-24-2021

Browse Popular Code Answers by Language