WordPress.org

Ready to get started?Download WordPress

Forums

Getting links from custom menu? (2 posts)

  1. Elliotvs
    Member
    Posted 1 year ago #

    Hello

    On my theme it currently displays on the navigation categories for posts but I would like it to show the links from a custom menu I made.

    In the code it currently has this: http://pastebin.com/HRZKm8ng - IT displays the post categories.

    Does anyone know how I can change this.

    Cheers.

  2. ronangelo
    Member
    Posted 1 year ago #

    register a custom menu.

    register_nav_menu( 'menu-primary', 'Primary' );

    then output the new menu in your header

    <?php wp_nav_menu( array('theme_location' => 'menu-primary') ); ?>

    http://ronangelo.com/create-a-custom-menu-for-a-wordpress-theme/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.