• Resolved blueyez

    (@blueyez)


    <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

  • The topic ‘page: if is’ is closed to new replies.