DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
echo post content by slug
$page = get_posts( array( 'name' => 'your-slug' ) ); if ( $page ) { echo $page[0]->post_content; }
Source by wordpress.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#echo
#post
#content
#slug
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit