Make a navigation menu in the same post [duplicate]

You can simply put The code in the php file in your theme.If you use twentyeleven theme open content-single.php, find the line

<h1 class="entry-title"><?php the_title(); ?></h1>

And after it put your divs and top menu.

Another option is to create a widget where you could easily update the html code.

Instead your divs, below this line

<h1 class="entry-title"><?php the_title(); ?></h1>

paste this:

<?php if ( ! dynamic_sidebar( 'links-below-post-title' ) ) : ?>

Also in fuctions.php after

function twentyeleven_widgets_init() {

add this:

register_sidebar( array(
        'name' => __( 'Links Below Post Title', 'twentyeleven' ),
        'id' => 'links-below-post-title',
        'before_widget' => '',
        'after_widget' => "",
        'before_title' => '',
        'after_title' => '',
    ) );

error code: 523