Codex tools: Log in / create account
Retrieves page data given a page ID or page object. Pages provide a way to have static content that will not affect things like articles or archives, or any other blog entry features of wordpress. Its simply a way to turn a blog entry into static content.
Wrong way:
<?php $p = get_page(2); // Error: Only variables can be passed by reference ?>
Right Way:
<?php $n = 2; $p = get_page($n);
$title = $p->post_title; // Get title
$content = $p->post_content; // Get Content
?>