7 Aug 2015

Display content of a specific page on home page (Wordpress)


if ( is_home() ) {
  echo get_post_field('post_content', '419');
}


or


                $id=419;
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
echo $content;  

No comments:

Post a Comment