Wordpress Categories in Different Sections

Discussion in 'WordPress' started by @SHFAQ, Mar 25, 2007.

  1. #1
    When we create categories in wordpress they all show on same place but i wanna make seperate categories for each section, see example below and plz tell me is there a plugin or hack for it ?

    ENTERTAINMENT - (section 1)
    ----------------------------
    Jokes
    Funny Pictures
    Riddles
    Fun Stuff

    RINGTONES - (section 2)
    ------------------------
    English Ringtones
    Funny Ringtones
    Nokia Ringtones
    Movie Ringtones

    GAMES - (section 3)
    --------------------
    Puzzle Games
    Racing Games
    Fighting Game
    Arcade Games
     
    @SHFAQ, Mar 25, 2007 IP
  2. casperl

    casperl Peon

    Messages:
    1,560
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont know but you may use categories for this purpose. As far as i know WP allows subcategories. I did not use that so far but i guess it should look like section/category.. Let me know if WP behaves them differently.
     
    casperl, Mar 26, 2007 IP
  3. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #3
    When you make a page that you want to be a sub category, set the parent page, in the side bar of the edit screen, (Scroll down a little) set it to the name of the page you want to be the main page of that category
    Check out mine, (Next to my name) If that's what you are talking about, that's how it's done.
    I have about 70 subpages.
     
    hmansfield, Mar 27, 2007 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just-4-teens, Mar 27, 2007 IP
  5. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    I dont wanna use page for sub categories.
    As we create categories and sub categories i only want to make categories text bold and without link so user know easily that it is main category and it has other sections. see below

    ENTERTAINMENT - (section 1 without link)
    ----------------------------
    Jokes
    Funny Pictures
    Riddles
    Fun Stuff

    RINGTONES - (section 2 without link)
    ------------------------
    English Ringtones
    Funny Ringtones
    Nokia Ringtones
    Movie Ringtones

    GAMES - (section 3 without link)
    --------------------
    Puzzle Games
    Racing Games
    Fighting Game
    Arcade Games
     
    @SHFAQ, Mar 27, 2007 IP
  6. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #6
    That's what i thought you meant.
    This the way I have it with different pages.
    Articles:
    1
    2
    3
    4
    DJ's:
    1
    2
    32
    34
    50
    and so on.
     
    hmansfield, Mar 27, 2007 IP
  7. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #7
    Yes you are right dear but how to do this ?
     
    @SHFAQ, Mar 27, 2007 IP
  8. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #8
    First I make my pages/ categories. Then for each sub page of each category, write it as a PAGE, not a post, and on the side bar set under where you want it to be, by setting the "parent page" on the options (On the side).

    So if you have "Cars"- Write cars as a page, then if you want "Buicks" as a sub page of "Cars"...write "Buick" as a Page also, and set the parent page as "Cars".

    It will come out like this:

    *CARS
    *Buick

    Hope this helps. This is how I do mine, and I have 11 pages with around 70 different sub pages.

    Oh yeah, I also list each subpage, on the parent page, with a link to it.
    So it looks like this on the parent page:

    LAS VEGAS (Parent page)
    * Pure (Link)
    * Taboo (Link)
    * Cherry's (Link)
     
    hmansfield, Mar 28, 2007 IP
  9. Jim_Westergren

    Jim_Westergren Notable Member

    Messages:
    1,882
    Likes Received:
    247
    Best Answers:
    0
    Trophy Points:
    235
    #9
    I would go for WP pages and editing the navigation by hand with normal HTML
     
    Jim_Westergren, Mar 28, 2007 IP
  10. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #10
    hmansfield dear thanks for your reply as i cant understand your idear clearly however will u plz tell me if we update a page daily is it good or bad for search engines and seo purpose ?
    Inface i wanna add free stuff and links on a page so i will daily add new links on page and edit page daily, i read on a forum that editing posts is not good for seo and search engines purpost, is it true for posts and page and if u plz explain your idea i will be thankfull.
     
    @SHFAQ, Mar 28, 2007 IP
  11. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #11
    Infact i want that main categories should be not clickable and in bold text, but hmansfield dear in your site main links and sub categories are both clickable and in same font, how user will recognize that new section is started.
     
    @SHFAQ, Mar 28, 2007 IP
  12. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #12
    That is something that I have noticed, and with the free version, I do not have the option of changing fonts on the page titles. I hope to rectify that when I transfer to my own hosted version. That is the reason I use (*) before the sub pages to make them stand out a little, but the pages are also listed in the top menu, and the sub pages also listed there.

    I don't know how to make them not clickable, unless, you just list them on each page as text, like in outline form.

    As for SEO. Anytime you add content it is good! I find that I get readers from search engine results from terms and phrases in previous posts all the time. New content is good. Content, (text) drives the search engines to notice you....it's what drives the internet.

    As for re editing posts...I do it all the time. I would think that it would be viewed as fresh content, but I cannot say for sure. I don't notice a problem and I still get Serp's on pages that I update, and I update or change subpages, weekly.

    It keeps readers coming back if they know they will get updated information, that is more valuable to me..return visitors.
    There is nothing worse than old info. People will lose faith in your blog as a reliable source.
     
    hmansfield, Mar 28, 2007 IP
  13. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I would filter it out.
    The call to categories makes a distinction in parent and sub categories. The sub categories get the this
    [B]<ul class='children'>[/B]
    Code (markup):
    So what I would do is find a way to see if I could have the array in which the call to wp_list_cat is stored not shown yet and do a change to whatever I want.

    As I wrote that sentence I just looked at the codex and didn't find a reference to having the output to be on hold (normally you can set echo=0 which forces wordpress not to show it yet and you can bend it the way you want)
    So an other way would be to write your own plugin/widget which would be almost identical to wp_list_cat with the small dif that if cat is not equal to subcategory -> no linking

    Sorry if this turned into geek
     
    Edynas, Mar 29, 2007 IP
  14. ShiftChip

    ShiftChip Well-Known Member

    Messages:
    365
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #14
    Do something like this with your sidebar:

    <h2>Cat name</h2>
    <?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=1'); ?>
    <br>
    <h2>Cat name2</h2>
    <?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=2'); ?>

    I think this would work... not at home so cant check.
     
    ShiftChip, Mar 29, 2007 IP
  15. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #15
    ShiftChip i think you are right. You need to hardcode it with every parent category but it's easier then my mindspin
     
    Edynas, Mar 29, 2007 IP
  16. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #16
    Thanks all friends.
    ShiftChip dear i think your idea will work.
    I will check it and told here.
     
    @SHFAQ, Mar 29, 2007 IP
  17. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #17
    ShiftChip dear your given code is not working, will anyone other plz check it, i think it may have some coding error, what u think ?
    Is this code really workd "child_of=1" ?
     
    @SHFAQ, Mar 30, 2007 IP
  18. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #18
    In the codex it says the following

    Show Children Only of Category

    Displays Category links sorted by ID (sort_column=id), without showing the number of posts per Category (optioncount=0), showing only the sub-Categories titles (use_desc_for_title=0), for just the children of Category ID 8 (child_of=8).
    
    <?php wp_list_cats('sort_column=id&optioncount=0&use_desc_for_title=0&child_of=8'); ?>
    Code (markup):
    ------
    So what you need to do is goto the admin panel ->manage->categories and there write down the id numbers in front of your main categories. That number should replace the number 8 in the example.
    So if Ringtones is for instance id 6 the code would be

    
    <div class="sidebox">
    <h2>RINGTONES</h2>
    <?php wp_list_cats('sort_column=id&optioncount=0&use_desc_for_title=0&child_of=6'); ?>
    </div>
    
    Code (markup):
    ps THIS WILL NOT WORK IF YOU ARE ON WP2.1
    You need to replace the code with this

    <?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=8'); ?>
    Code (markup):
    the function wp_list_cats has been replaced with wp_list_categories
     
    Edynas, Mar 31, 2007 IP
  19. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #19
    Dear You define idea very cleary and now its working, thanks,
    But it has only one fault after heading of every section it show non clickable category text, for example see below

    GAMES Section
    --------------------
    Categories (how to remove it ?)
    Puzzle Games
    Racing Games
    Fighting Game
    Arcade Games
     
    @SHFAQ, Mar 31, 2007 IP
  20. rubendn

    rubendn Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I'm using the following in WP 2.1 to do the same thing. My code for each category sections looks like this...

    
    <h1>MAIN CATEGORY X</h1>
    <div class="left-box">
        <ul class="sidemenu">
            <?php wp_list_categories('show_count=1&title_li=&hierarchical=1&hide_empty=0&child_of=X'); ?>
        </ul>	
    </div>
    Code (markup):
    Make sure that the categories you want to display are subcategories of your main category. Then substitute the X in child_of for the id of your Top Level Category. You might have to play around with your CSS to get it to look right with your theme.
     
    rubendn, Apr 1, 2007 IP