Attempting to create a "publish" post that will not be displayed in main page (4 posts)

  1. kate0721
    Posted 7 years ago #


    Question: I am trying to figure out how to create a "published post", that will not display within the main page.

    This publish post will have its own permalink and the difference is that this post will not be automatically added to the main page.


  2. esmi
    Forum Moderator
    Posted 7 years ago #

    Is this going to be a "one-off" or are you likely to want to have publish of this "not on the front page" posts? If it's the latter, then one approach might be to create a special category just for these posts and then exclude that entire category from the blog's main page using query_posts.


  3. kate0721
    Posted 7 years ago #

    Thanks for the response. Your solution is what I am looking for. ^_^

    if (is_home()) {

    I've inserted the script above within index.php and it does not work. I would like to confirm by category ID, would that be equivalent to category slug? Also, can I put the above script anyhere within index.php? (currently putting it under <div id="main">)

  4. kate0721
    Posted 7 years ago #

    got it working!!!

    TY TY TY so much!! ^_^

Topic Closed

This topic has been closed to new replies.

About this Topic