Wordpress Categories in Different Sections

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

  1. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #21
    Dear thanks for reply, i did the same procedure as u told, everything is good, but after every section heading it shows a not linked text "categories" just tell me how to remove it ?

    In the heading section can we put any heading text or it is necessary to give Main Category no here "MAIN CATEGORY X"

    Also if we make some parent categories with sub categories and some categories without sub categories, now we will show parent categories and sub categories with upper command but how to show remaining main categories that are without any sub categories ?
     
    @SHFAQ, Apr 1, 2007 IP
  2. rubendn

    rubendn Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Do you have somewhere I can take a look at it? I can't tell by the description.
     
    rubendn, Apr 1, 2007 IP
  3. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #23
    Infact dear i am checking on local server, i mean on my own pc so cant show it, however if you plz solve the problem i will be very thankfull, just tell me how to remove non clickable "categories" text after every section heading

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

    rubendn Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Can you show the code that you have now?

    What I would do is set up a main category called GAMES and then setup all the other categories as subcategories below GAMES.

    Then you select to show only children of GAMES in your Sidebar code.
     
    rubendn, Apr 2, 2007 IP
  5. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Used the code on a site of mine and it works so if you can show me where you use it maybe I can have a look
     
    Edynas, Apr 3, 2007 IP
  6. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #26
    Infact guys as i told before i am checking it on my own computer bcoz i make my pc as server with a software so tell me how can i show u what i did, however i am telling u what i do with code.

    1- I make a main category name is "Games" (Assume its category id is 1)
    2- Now make four sub categories in Games Category
    Puzzle Games - Racing Games - Fighting Game - Arcade Games
    3- Now i open sidebar.php and put this code
    <h2>Games</h2>
    <?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=1'); ?>
    PHP:
     
    @SHFAQ, Apr 3, 2007 IP
  7. rubendn

    rubendn Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #27
    Take a look at one of my sites: http://www.mapseeing.com

    The 'Location' is a category that has all those subcategories under in (including some subcategories under the subcategories).

    The 'Categories' category has those subcategories listed under it.

    My code for the Location category is as follows in my sidebar.php:

    h1>Location</h1>
    <div class="left-box">
      <ul class="sidemenu">
        <?php wp_list_categories('show_count=1&title_li=&hierarchical=1&hide_empty=0&child_of=8'); ?>
      </ul>	
    </div>
    Code (markup):
    You problem might be that you need to put 'title_li='
     
    rubendn, Apr 3, 2007 IP
  8. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #28
    Dear everything is working just fine just tell me i will put heading or main category of every section and put your given code and it shows sub categories, Its what that i want Good.
    Now Just tell me how to show remaining categories which didnt have sub categories ? I mean Main Categories wid sub categories should be shown on seperate and other main categories without sub categories should be shown seperate, For example

    GAMES Section (Main Category wid sub categories, Its Fine)
    --------------------
    Puzzle Games
    Racing Games
    Fighting Game
    Arcade Games

    Jokes (Main Category Without Sub Category)
    sms Messages (Main Category Without Sub Category)
    Msn Names (Main Category Without Sub Category)
     
    @SHFAQ, Apr 5, 2007 IP
  9. rubendn

    rubendn Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #29
    Replace the numbers below with the category id's of the ones you want to show.

    <ul>
    <?php
    wp_list_categories('orderby=name&include=3,5,9,16'); ?>
    </ul>
     
    rubendn, Apr 5, 2007 IP
  10. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #30
    Thanks dear it works.
     
    @SHFAQ, Apr 9, 2007 IP