When I click on a category link, I get a page that lists all posts in that category.
How do I add a button to the navigation bar that does the same thing?
When I click on a category link, I get a page that lists all posts in that category.
How do I add a button to the navigation bar that does the same thing?
I found a plugin that inserts a list of posts in a given category into a page or post: List Category Posts from http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/.
If used on a static page, the page would appear as a button on the nav bar, as usual.
This isn't quite what I wanted (I wanted the entire text of the posts to appear on the page), but it is a step in the right direction.
I am interested in that too.
How to add Links to specified categories to the navigation?
function test_access() { ?>
<div id="access">
<div class="skip-link"><a href="#content">"><?php _e('Skip to content', 'thematic'); ?></a></div>
<div class="menu">
<ul class="lava">
<li><a>/" title="<?php bloginfo('name') ?>" rel="home">Blog</a></li>
<?php wp_list_pages('title_li='); ?>
<?php wp_list_categories('include=8&title_li='); ?>
</div>
</div><!-- #access -->
<?php }
function remove_access() {
remove_action('thematic_header','thematic_access',9);
}
add_action('init', 'remove_access');
add_action('thematic_header','test_access',9);
This already works fine. But my Navigation script uses the "current_page_item" class to display which page is the current one.
Problem: categories don't have "current_page_item" and "Blog" still has the "current_page_item"-class when just a category is on page..
Suggestions?
€: Resolved. Just searched some more for "menu" instead of "navigation" and found a workaround. http://wordpress.org/extend/plugins/page-links-to/
This topic has been closed to new replies.