Support » Themes and Templates » single.php & dynamic menu question

single.php & dynamic menu question

  • Hi there,

    I currently have a single.php page that uses 2 loops – one to display regular posts and one to display a specific category post. Now I need to have my specific category post to be displayed under the menu tab of ‘gigs’ but currently it displays under my archive page tab ‘news’.

    Here is my current menu code:

    	<li <?php if ( is_page(home)) { echo 'class="current_page_item"';} ?>><a href="<?php bloginfo('siteurl'); ?>" title="Take me back home">Home</a></li>
    	<li <?php if ( is_page("archive") || (is_page("archive-2") || (is_single()))) { echo 'class="current_page_item"';} ?>><a href="<?php bloginfo('url'); ?>/archive/">News</a></li>
    	<li <?php if ( is_category("9") || (is_page("gigs") || (is_single("live-review")))) { echo 'class="current_page_item"';} ?>><a href="<?php bloginfo('url'); ?>/gigs/">Gigs</a></li>

    Is there a way to display under ‘gig’ and not ‘news’ when I click on a category post for ID9?

    Many thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘single.php & dynamic menu question’ is closed to new replies.