WordPress.org

Ready to get started?Download WordPress

Forums

Custom Menu system broken after renaming page and link name (2 posts)

  1. MathiasAeschlimann
    Member
    Posted 1 year ago #

    I have four custom menu's: primary, sidebar, header, footer.

    I changed the name of a page from 'Laufanalyse' to 'Laufanalyse, Sportberatung'.
    In the custom menus primary and sidebar I edit the appearance/link name to be 'Laufanalyse' (The name the page had before).

    Now the primary and sidebar menu slots are broken. No matter what,

    <?php wp_nav_menu( array( 'theme_location' => 'primary','link_before' => '<span>', 'link_after' => '</span>' ) ); ?>

    now lists all the pages the site have. Sadly, this is also true for all new Custom Menus I create. Only the Header and Footer menus still work.

    How do I fix this?

  2. MathiasAeschlimann
    Member
    Posted 1 year ago #

    Oh, if I register new menu slots like this:
    'hauptmenu' => __( 'New Menu', 'twentyeleven' ), instead of
    'primary', __( 'Primary Menu', 'twentyeleven' ), they work. Yet the primary doesn't. Very strange! Maybe somebody knows what's going on?

Topic Closed

This topic has been closed to new replies.

About this Topic