My totally using blogging platforms and associated with groups.
I've got a group of groups for my posts: All, Cat-a, Cat-b and Cat-c.
a. After I click the connect to my posts page, I wish to show accurate documentation for 'All'. How do you produce a connect to 'All' clearly? Something of the kind?
<a href="<?php bloginfo('url'); ?>">All Posts</a>
b. I'd be also exhibiting their email list of groups (proven below). I'd however have to highlight the present category (automatically, All).
<ul> <?php wp_list_categories('title_li='); ?> </ul>
c. Also I'd need all groups to become displayed when they have been posts inside them or otherwise.
Any help about this is greatly appreciated. Thanks!
The styling all of a sudden labored without warning! :) Many thanks!
However, an issue still remains. I've because of the following arguments within the wordpress_list_groups function.
<?php wp_list_categories('show_option_all=All&hide_empty=0&title_li=¤t_category=All'); ?>
I would like the 'All' choice to be visible in almost any category listing. However, since automatically, all posts load, the styling for current_category also needs to affect 'All'. However, since All doesn't have a category ID, I don't understand how to apply the present-cat class to 'All'.
a) Have a look at wp_list_categories. You will notice "show_option_all" parameter, that will show an exciting groups option.
$args = array( 'show_option_all' => 'All Posts' ); wp_list_categories($args)
b) I clarified this in another question or yours. Essentially current-cat is automatically on category archive pages, but when you would like it on all pages, set current_category = one in the $args array above:
$args = array( 'show_option_all' => 'All Posts', 'current_category' => 1 );
c) This really is setting hide_empty to :
$args = array( 'show_option_all' => 'All Posts', 'current_category' => 1, 'hide_empty' => 0 );