Title: Interaction with  wp_nav_menu()?
Last modified: August 21, 2016

---

# Interaction with wp_nav_menu()?

 *  [papino](https://wordpress.org/support/users/papino/)
 * (@papino)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interaction-with-wp_nav_menu/)
 * So at the simplest form I have this piece of code within a pair of DIVs:
 *     ```
       <div>
       <?php wp_nav_menu(); ?>
       <h1><?php wp_title(); ?> </h1>
       <?php while(have_posts()) : the_post(); ?>
       <p><?php the_content(); ?></p>
       <?php endwhile ?>
       </div>
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 * Every time when I click the menu link the title and content get changed accordingly,
   how could I make the wp_nav_menu() also dynamically interact with other DIV contents,
   sidebar or widgets? Please help, thanks.

The topic ‘Interaction with wp_nav_menu()?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [papino](https://wordpress.org/support/users/papino/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/interaction-with-wp_nav_menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
