Hello, I'm working on a blog that will have a few parent categories, and each parent category will have dozens, maybe hundreds of child categories. I need a way for the categories list to only show the parent categories. If you clicked on a parent category (and/or) visited the parent category page), you would see the child categories for that parent category. So, for example, the category list on the homepage would be: Cat 1 Cat 2 Cat 3 Cat 4 If you clicked on Cat 2, you would then see: Cat 1 Cat 2 -Cat 2.1 -Cat 2.2 -Cat 2.3 -Cat 2.4 -Cat 2.5 -Cat 2.6 Cat 3 Cat 4 How can I do this? Thanks for the help! (green for anyone who helps. ) ~Adam
Hmmm...OK. I have WP 2.2 and am displaying the categories via the widgets functions. How do I get the Fold Categories plugin to function??? The instructions say: To use, simply replace the code fragment that looks like this <?php wp_list_cats ($args); ?> Code (markup): with this: <?php wswwpx_fold_category_list ($args); ?> Code (markup): But I can't find those lines of code in sidebar.php for my theme... Thanks, Adam
If you are displaying categories as a widget it may be in that code. I do not use widgets so just guessing! The code: <?php wp_list_cats ($args); ?> may be <?php wp_list_cats (); ?> (I have not seen the $args in any of mine.)
Thank you. Both suggestions were accurate and helpful! I found the code to replace in wp-includes/widgets.php and the function was actually wp_list_categories. Thanks, Adam