Wordpress Coding Question
Hope someone can help. I'm trying to add some code to the category.php file so that when you click on a category you get a list of the child categories, grandchild categories and posts.
I found this code somewhere but it only lists the child categories:
<?php // list child categories
$cat_id = get_query_var('cat');
$catlist = wp_list_categories('echo=0&orderby=id&title_li=&child_of=' . $cat_id);
if ($catlist) {
echo $catlist;
} else {
echo "Please don't print No categories";
} ?>
Can someone help?
let me know! thanks
C
-
mywebwork -
Thanks
{{ DiscussionBoard.errors[1728499].message }} -
-
moodykitty -
Thanks
SignatureI would rather live my life as if there is a God, and die to find out there isn't, than live my life as if there isn't, and die to find out there is.{{ DiscussionBoard.errors[1728848].message }} -
-
mywebwork -
Thanks
{{ DiscussionBoard.errors[1728903].message }} -
-
moodykitty -
Thanks
SignatureI would rather live my life as if there is a God, and die to find out there isn't, than live my life as if there isn't, and die to find out there is.{{ DiscussionBoard.errors[1731089].message }} -