SHARE
TWEET

Untitled

a guest Jun 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array(
  2.     'post__in' => array(43,23,65)
  3. );
  4.  
  5. $posts = get_posts($args);
  6.  
  7. foreach ($posts as $p) :
  8.     //post!
  9. endforeach;
  10.      
  11. $args = array(
  12.     'post_type' => 'pt_case_study',
  13.     'post__in' => array(2417, 2112, 784)
  14. );
  15.  
  16. $posts = 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
 
Top