SHARE
TWEET

Untitled

amjithps Aug 27th, 2015 421 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $query = new WP_Query(array(
  2.                 'post_type' => 'page',
  3.                 'posts_per_page' => 1,
  4.                 'id' => 4, // here the 'about' is the page slug you stored in wordpress when creating the page
  5. ));
  6. $page = $query->get_posts();
  7. $page = array_shift($page);
  8. return $page;
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