How to do this in WOrpdress?

Discussion in 'WordPress' started by resaik_king, Feb 24, 2009.

  1. #1
    Hi-

    I need some help in Wordpress. I want to add post in my blog but I don't want it to be place in Front page. I just want it in specific category.

    How can I do this? Is there any plug in for this?
     
    resaik_king, Feb 24, 2009 IP
  2. Houdy

    Houdy Peon

    Messages:
    267
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Houdy, Feb 24, 2009 IP
  3. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Can you post here specific code or instruction? I am not that techie person:)
     
    resaik_king, Feb 24, 2009 IP
  4. dickieknee

    dickieknee Active Member

    Messages:
    441
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #4
    the instructions at wp codex are very clear if you do not understand php then you will need to get some tech person to help you....
     
    dickieknee, Feb 24, 2009 IP
  5. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,482
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #5
    Hire someone to do that job for you if you are not techie person. Don't play with codes if you don't know anything about it otherwise it gives you error.

    DON.
     
    deluxdon, Feb 24, 2009 IP
  6. arramuse

    arramuse Active Member

    Messages:
    512
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    You can try to post with OLD post date ;)
     
    arramuse, Feb 25, 2009 IP
  7. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Problem solved.

    I just change the date:)
     
    resaik_king, Feb 25, 2009 IP
  8. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #8
    For future reference. Your front page is set to post from a certain category (1). Most people have it as "Featured" or something simular.
    Just don't select that category when you post and it won't show up on it, but it will show on the category you did select.

    You don't need to change any code or hire a programmer to simply place the post in a category that doesn't show on the blog page.
     
    hmansfield, Feb 25, 2009 IP
  9. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #9
    Where can i found the setting to set up front page in specific category?
     
    resaik_king, Feb 26, 2009 IP
  10. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Under Settings> Writing, you set the default post category from the drop down menu of categories that you have created.
    Additionally many themes ask for a default category as well in the theme options.
     
    hmansfield, Feb 27, 2009 IP
  11. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #11
    Do I need to edit the code of the theme? It does not work here
     
    resaik_king, Feb 27, 2009 IP
  12. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #12
    What theme are you using ? Usually it is a theme option. If not, then the easiest way would be to continue what you are doing and change the date.

    So what you are saying is that ALL of your posts are going to the front page, no matter what category you put them in ? And you are sure that you are unchecking the default post category ?
     
    hmansfield, Feb 27, 2009 IP
  13. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #13
    If you are still having problems and you want to edit the code.

    First of all get the number of the category that you want to exclude. You do this by opening you categories section from your dashboard.....hover over the category that you want to exclude ad look at the left-bottom of your browser to see the category number.

    Open you Index.php:

    # Inside the *index.php file, look for the line that says “<?php if (have_posts()) : ?> ”
    then paste this code after that line:
    ]! don’t forget to change the id to your chosen category id

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-8&paged=$page"); ?>

    and before this code. “ <?php while (have_posts()) : the_post(); ?> “
    # Then Update your *index.php file.

    That should work.
     
    hmansfield, Feb 27, 2009 IP