Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Get page title, excerpt or content by Name of the Page

<?php 
$page_name = get_page_by_title( 'About' ); // here About is page name.


echo $page_title = $page_name->post_title;

echo $page_excerpt = $page_name->post_excerpt;

echo $page_content = $page_name->post_content;
?>
 
PREVIOUS NEXT
Tagged: #Get #page #excerpt #content #Name #Page
ADD COMMENT
Topic
Name
1+9 =