kier0
2/22/2015 - 12:20 AM

Wordpress - Get Page or Post TITLE + CONTENT by ID (change 6 to id #)

Wordpress - Get Page or Post TITLE + CONTENT by ID (change 6 to id #)

<h1><?php echo get_the_title(6); ?> </h1>

<?php 
$id=6; 
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content); 
echo $content;  
?>