cacophoney
Forum Replies Created
-
Forum: Plugins
In reply to: Showing only the children of categoriesHope I do understand your message correctly.. I want to do more or less the same thing, too.
First I make another template for category page using the mod_rewrite thingie (by modifying the .htaccess file — there’s a tutorial on that but i dont have my bookmarks so i cant give you the link, sorry).
Then in my category.php page, I write this:
<?php wp_list_cats(‘child_of=$cat’); ?>
where I want my subcategory links to display.
To show only subcategories one level down (ie hiding subcategories of a subcategory, if any), I only use CSS (display: none).The only problem is, I need to put a text (“subcategories:”) before the subcategories link, so my code goes like:
<ul id="subcat">
<li>subcategories: </li>
<?php wp_list_cats('child_of=$cat'); ?>
</ul>
When a category has no further subcategories under it, it would still display the text “subcategories:”.
What I need is the code to hide that
<li>subcategories: </li>
part IF there’s no subcategories under a category. I know I probably should use some “if-then” thingie using PHP but I know positively nothing about php so I’d be glad if anyone can help.Loads of thanks.
Forum: Plugins
In reply to: To Alex K: # posts in month/categoryhullo people,
i prolly have to beg your pardon for being so stupid, but i know completely nothing about technical stuff..i currently have version 1.2.2; this hack (the one that displays number of posts each month) is exactly what i need, only i have no idea how to put it into my (archives) template. i use modified Nicer Archives, the one that only displays posts by date (not sortable).
i’ve searched all around and i have also tried suggestions posted above, but i cant seem to get it..
* where can i get the “b2template.functions.php” file? i dont have it since i use v.1.2.2
* what tag(s)/code/whatever should i add to my template to get it to work?