• Hey guys,
    I’m new to the WordPress thing and creating my own theme. I’ve created all my different pages in HTML prior to starting the theme (Home, News, Reviews etc), and then used that code to create my php includes header, footer etc.

    I now have index.php running and displaying a list of all my posts from all categories using the standard WP loop. My question is, how do I go about creating the other pages for my website, and how do I link to them from the main navigation in my header? My navigation uses sprites so I’d like to be able to control the order of pages displaying in the nav which I’m guessing means hard coding something into each list item?

    My other question is how do I then make each post on my index page display in full on it’s respective category page? Each category page will need to have a different sidebar but everything else will be static.

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Friend
    ->First register your menu in theme function.php

    Hi Friend
    ->First register your menu in theme function.php

    register_nav_menus( array(
    		'header_menu' => __( 'Header Navigation', 'theme' ),
    		'footer_menu' => __( 'Footer Navigation', 'theme' ),
    	) );

    -> And put this code where you want to show your menu in header html..

    <div class="main_menu">
    <?php wp_nav_menu( array( 'theme_location' => 'header_menu' ) ); ?>
    </div>

    -> and create your menu in dashboard using menu option
    Ex : go admin panel & navigate Appearance->Menu-> see right side..
    ->create new menu and add your pages into your menu…& save it

    See This links
    register Menu

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create new pages and link to them from nav’ is closed to new replies.