Forums

[resolved] page: if is (1 post)

  1. blueyez
    Member
    Posted 3 years ago #

    <ul id="nav">
      <li<?php if ( is_home() || is_category() || is_archive() || is_search() || is_single() || is_date() ) { echo ' class="current"'; } ?>><a href="#">Gallery</a></li>
      <li<?php if ( is_page('about') ) { echo ' class="current"'; } ?>><a href="#">About</a></li>
      <li<?php if ( is_page('submit') ) { echo ' class="current"'; } ?>><a href="#">Submit</a></li>
    </ul>

    i don't want to manually add the lines
    this would mean that my pages menu will be static
    any othere versions of this ? / plugin / engine modifications

Topic Closed

This topic has been closed to new replies.

About this Topic