WordPress guru I need your help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qw12er
    Confirmed User
    • Apr 2004
    • 799

    #1

    WordPress guru I need your help

    How do you make a post apear only in a category and not on the main page ?


    Thanks for your help.
    I have nothing to advertise ... yet.
  • Trixxxia
    Confirmed User
    • Aug 2004
    • 5600

    #2
    mmm not a guru infact, lost most of the time LMAO
    but wouldn't you uncheck it on the categories and just put it on the category you want?

    **going to test now - keep you posted**

    Comment

    • MaddCaz
      Confirmed User
      • Mar 2006
      • 9483

      #3
      what'll you do???

      BigCocks.com -
      MatureWomen.com -
      Tranny.com -
      DrunkGirls.com -
      TeenGirls.com -
      MonsterCock.com and
      many more... Click
      here to see them all!

      Comment

      • qw12er
        Confirmed User
        • Apr 2004
        • 799

        #4
        Originally posted by TopBucksTrixxxia
        mmm not a guru infact, lost most of the time LMAO
        but wouldn't you uncheck it on the categories and just put it on the category you want?

        **going to test now - keep you posted**
        WordPress seems to post everything on the main page what ever the category ...
        I have nothing to advertise ... yet.

        Comment

        • Basic_man
          Programming King Pin
          • Oct 2003
          • 27360

          #5
          Hit me up on ICQ mate, je peux t'aider avec ca. ICQ : 34916475
          UUGallery Builder - automated photo/video gallery plugin for Wordpress!
          Stop looking! Checkout Naked Hosting, online since 1999 !

          Comment

          • Trixxxia
            Confirmed User
            • Aug 2004
            • 5600

            #6
            Nope - didn't work

            Comment

            • Shags
              Confirmed User
              • Mar 2004
              • 735

              #7
              ShowOnFrontPage allows you to keep select posts from showing on front page of Wordpress.
              Click Here

              Comment

              • jayeff
                Confirmed User
                • May 2001
                • 2944

                #8
                In case that plugin page is still down, there are a few options. The first is to put posts you do not want to show on the main page into their own category and wrap this code around "The Loop"on the main page (this example assumes you have used category id #3 for the posts you want to exclude):
                Code:
                <?php if (in_category('3') && is_home() ) continue; ?>
                
                ...the rest of The Loop
                
                <?php endif; ?>
                That is the easiest way, but the snag is that the counter will include the skipped posts, so if you intend to show 10 posts and 5 get hidden, only 5 will display. This alternative again excludes category #3 and you place this code ahead of The Loop:
                Code:
                <?php
                   if (is_home()) {
                      query_posts("cat=-3");
                   }
                ?>
                If you want to exclude more than one category then you have to come at it from a different direction, by including all the categories you don't want to exclude. Again this code goes ahead of The Loop.
                Code:
                <?php
                   if (is_home()) {
                      query_posts('cat=1,2,5,6,');
                   }
                ?>
                Just remember, if you add new categories later, to add them to the list, or they will not display.

                Comment

                • starpimps
                  Confirmed User
                  • Sep 2006
                  • 6954

                  #9
                  shags you are amazing i was wondering how you could do that!!
                  Teen Porn Models / Solo Girls

                  Comment

                  Working...