Title: Highlighting menu
Last modified: August 20, 2016

---

# Highlighting menu

 *  [Knowles2](https://wordpress.org/support/users/knowles2/)
 * (@knowles2)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/highlighting-menu/)
 * I am trying to build a menu which highlights the menu when you are viewing the
   page, I search the internet and tried numerous tutorials but have not been able
   to get anything to work.
    Here the page:
 * <[http://www.fireseedproductions.co.uk/office/description](http://www.fireseedproductions.co.uk/office/description)
 * Here the menu code I am using.
 *     ```
       <div class="pagemenu">
       <ul>
       <?php if($post->post_parent) $children = wp_list_pages("sort_column=menu_order&title_li=&child_of=0".$post->post_parent."&echo=1");
       else	$children = wp_list_pages("sort_column=menu_order&title_li=&child_of=0".$post ->ID."&echo=2");
       if ($children) { ?>
       <li><?php echo $children; ?></ul></li>
       <?php } ?></ul>					</div>			<div>
       <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
       ```
   
 * Any help would be appreciated.

The topic ‘Highlighting menu’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Knowles2](https://wordpress.org/support/users/knowles2/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/highlighting-menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
