SHARE
TWEET

Get POSTS de un CPT

Gaskabur Sep 16th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array(
  2.   'numberposts' => 10,
  3.   'post_type'   => 'book'
  4. );
  5.  
  6. $latest_books = get_posts( $args );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top