Guest User

Untitled

a guest
Jan 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. $args = array(
  3. 'p' => 340, // ID of a page, post, or custom type
  4. 'post_type' => 'about'
  5. );
  6. ?>
  7.  
  8. <?php $my_posts = new WP_Query($args); ?>
  9. <?php while ($my_posts->have_posts() ) : $my_posts->the_post(); ?>
  10. <?=the_content();?>
  11. <?php endwhile; ?>
  12. <?php wp_reset_postdata();?>
Add Comment
Please, Sign In to add comment