Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Get page title, excerpt or content by id

<?php 
$var_name = get_post('1'); // here 1 is id of the page.

echo $page_title = $var_name->post_title;

echo $page_excerpt = $var_name->post_excerpt;

echo $page_content = $var_name->post_content;
?>
 
PREVIOUS NEXT
Tagged: #Get #page #excerpt #content #id
ADD COMMENT
Topic
Name
6+8 =