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 ?
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
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.
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
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:
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='
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)
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>