Indenting Subcategories
-
Hi All,
I am using WP 2.5.1 with the Whitespace 3-column theme. My problem is that my left side bar, which hosts my categories, is showing all my categories, and sub categories, as though they are on the same parent tier of the category hierarchical structure.
This is the below code from the l_sidebar.php file to output all categories, and subcategories, to my page:
<?php wp_list_categories('sort_column=name&title_li='); ?>
For example, I have a partent category named “Active Directory” with a child subcategory named “Scripting”.
Currently the two related categories are being outputted like this:
Quote:Active Directory
ScriptingMy end goal is to denote that the “Scripting” subcategory is a child subcategory rather than a parent category. Ideally, I would like this done either by an indent(space) or perhaps a dash. Can anyone offer a solution, tip, or suggestion? I have been trying to figure this out for quite some time.
Additionally, how hard would it be to show the count of postings at the right of each category name?
Active Directory
_Scripting <– underscore denotes a spaceor
Active Directory
-ScriptingThank you all in advance for your help.
- The topic ‘Indenting Subcategories’ is closed to new replies.