• 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.