Tag archives: page

Get content from a particular page in WordPress

Code with explanation :
{code type=php}

<?php
$page_id = 25;//25 should be replaced with a specific Page’s id from your site

$page_data = get_page( $page_id );
$content = apply_filters(‘the_content’, $page_data->post_content);

$title = $page_data->post_title; //Get title
echo $content; //Get Content

?>

{/code}