Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = new WP_Query(array(
- 'post_type' => 'page',
- 'posts_per_page' => 1,
- 'id' => 4, // here the 'about' is the page slug you stored in wordpress when creating the page
- ));
- $page = $query->get_posts();
- $page = array_shift($page);
- return $page;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement