ThemeShaper Forums » Thematic


Category link on nav button?

(3 posts)
  • Started 12 years ago by moondome
  • Latest reply from ahoereth
  • This topic is resolved
  1. moondome

    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?

    Posted 12 years ago #
  2. moondome

    I found a plugin that inserts a list of posts in a given category into a page or post: List Category Posts from

    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.

    Posted 12 years ago #
  3. ahoereth

    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><!-- #access -->
    <?php }
    function remove_access() {
    add_action('init', 'remove_access');

    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..


    €: Resolved. Just searched some more for "menu" instead of "navigation" and found a workaround.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.