• I am sure there must be an easy way to do this, but all I want to do is display a single (unchanging not latest) blog post on my static home page. Any easy suggestions?

Viewing 1 replies (of 1 total)
  • it should be something like this

    $my_postid = 12;//This is page/post id or post id
    $content_post = get_post($my_postid);
    $content = $content_post->post_content;
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    echo $content;

Viewing 1 replies (of 1 total)
  • The topic ‘Post on Static Home Page’ is closed to new replies.