View Single Post
Old 06-18-2010, 07:05 AM  
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by harvey View Post
well, I don't have an example with categories and subcategories at hand (oh my, why in hell every single person asking for help NEVER includes the example so they can actually be helped?) but if you constructed it using defaults you should have something like

Code:
<ul>
<li>Cat 1</li>
<li>Cat2
     <ul>
          <li> Cat 2 Children category </li>
     </ul>
</li>
</ul>
where
Code:
<li> Cat 2 Children category </li>
will have a class named .children or .child or something like that (don't remember right now, and since nobody post examples.... ). Just style that class and you'll be done

sorry i was tired when i made thread...the wp_list_categories prints your category list heres a snippet of code from the default wordpress theme sidebar:
Code:
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
that will print a list in alphabetical order with child categories, and post count. An example of what i currently have can be found in the default wp theme, an example of what i would like my list to look like can be found here:
http://www.hotmovies.com/categories.php
The parent cats are bold and using the <h3> tag, therefore helping to show the difference between parent and child cats. Is that possible in wordpress?
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote