how can i hide articles/post from main page/home page?

Discussion in 'WordPress' started by indra7x, Feb 8, 2011.

  1. #1
    i don't want to show some articles and please help me how can i hide my articles at home page thank you :)
     
    indra7x, Feb 8, 2011 IP
  2. secretsau

    secretsau Active Member

    Messages:
    402
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try this: When you want to edit the post in your admin, click on "Quick edit" then check the box "Private" then "Update"
     
    secretsau, Feb 8, 2011 IP
  3. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe he doesn't want them private. He just doesn't want them to show on the homepage.

    If that is the case, then you have to exclude the category from the LOOP. There is sample code Exclude Posts From Some Category within the loop at the WordPress Codex.
     
    Dodger, Feb 8, 2011 IP
  4. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I am bad when it comes to PHP lol..

    You can hide it with css too, though, if you just want to hide it.

    Inspect the post ID with firebug and hide it.
    But editing the loop is the best, unless you use some complicated theme..
     
    KimiGermany, Feb 8, 2011 IP
  5. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That is how News themes are coded. They display one category in a section, another category in another section. It is fairly simple once you do it a few times, well, kind of simple! ;)

    I don't hiding with CSS is a good choice either way. It is like the "asides" category where people just blow off some steam with a few short sentences. The posts are not relative to their main theme, so they display them somewhere else that is low-key.
     
    Dodger, Feb 8, 2011 IP
  6. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
  7. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Out of date. Buggy. And unreliable. More problems that it is worth.

    Think before you recommend. That plugin is also out of date and does not work with newer versions of WordPress.

    Why do people keep throwing plugins as an answer for every problem, when changing one or two lines of code will accomplish what the person wants?
     
    Dodger, Feb 8, 2011 IP