Looking for a[nother] WP plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baddog
    So Fucking Banned
    • Apr 2001
    • 107089

    #1

    Looking for a[nother] WP plugin

    Looking for a plugin that will allow you to make a post to a particular page without showing up on the home page as well.

    Tried Pages Posts but it adds the post to the homepage as well as its own page. Any ideas?
  • closer
    Confirmed User
    • Sep 2005
    • 1707

    #2
    dunno about any plugin for this except the one you found, but you could also try conditional tags?

    http://codex.wordpress.org/Conditional_Tags

    Comment

    • harvey
      Confirmed User
      • Jul 2001
      • 9266

      #3
      you don't need any plugin. You can do it in many ways, the easier one is to add the post to a category with posts that won't show, ie "privateposts".

      Now open your theme's index.php and look for the loop. It can be constructed in different ways depending on the theme, but you will see something like this:

      Code:
       <?php query_posts ?>
      Code:
       <?php query_posts($query_string . '&cat=25'); ?>
      where 25 is the category ID

      or

      Code:
       <?php query_posts($query_string . 'category_name=privateposts'); ?>
      of course you can exclude by many criteria, including custom fields, by author, by post ID, by date and so on, but the one above is the easier one IMHO
      This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

      Comment

      • harvey
        Confirmed User
        • Jul 2001
        • 9266

        #4
        Originally posted by harvey
        you don't need any plugin. You can do it in many ways, the easier one is to add the post to a category with posts that won't show, ie "privateposts".

        Now open your theme's index.php and look for the loop. It can be constructed in different ways depending on the theme, but you will see something like this:

        Code:
         <?php query_posts ?>
        Code:
         <?php query_posts($query_string . '&cat=25'); ?>
        where 25 is the category ID

        or

        Code:
         <?php query_posts($query_string . 'category_name=privateposts'); ?>
        of course you can exclude by many criteria, including custom fields, by author, by post ID, by date and so on, but the one above is the easier one IMHO

        sorry, it should be:

        Code:
         <?php query_posts($query_string . '&cat=-25'); ?>
        This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

        Comment

        Working...