php Add post to Page

just copy and paste this

change the $pstID to match your post….

add it to sidepart DIV

//Fetch specific post and put in the page;

copy code below and change pstID appropriately

make sure to include php tags

<?php

$pstID=389;

$pst=get_post($pstID);

$pstCnt= $pst ->post_content;

echo $pstCnt;

?>

One response to “php Add post to Page”