Turning Categories into Pages / nav Headings

Discussion in 'WordPress' started by netsavy006, Dec 28, 2010.

  1. #1
    On my wordpress blog, I made different category headings for different posts. What I'd like to do is make these categories and turn them into Pages or nav headings so that when I make a post that goes into category "take" for example will go on a page called "take" and show up on the nav heading called "take".

    I hope the above makes since.

    Thanks,
    Andy.
     
    netsavy006, Dec 28, 2010 IP
  2. daljit

    daljit Well-Known Member

    Messages:
    312
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    can you explain i dont able to understand what exact u need.
     
    daljit, Jan 6, 2011 IP
  3. patamski9v

    patamski9v Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its just change some PHP on your header..
     
    patamski9v, Jan 7, 2011 IP
  4. cyberLana

    cyberLana Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you have a category named "take" and your blog is http://myblog.com then usually what wordpress does, is make a Slug (a nicely readable URL) for your category. For example, if your posts fall into "take" category, you will later be able to find them all under http://myblog.com/category/take. That will open a new page on your blog, with only those posts in it, that contain that category.

    If you wish to expose that category in a certain way, you have at least two options:
    - to put a Category widget to your sidebar - It shows used category names and e.g. number of posts in that category. Also, it links to that category page, like I showed you above.
    - to make a customised menu for your side, where menu buttons are actually names of your categories, so you have them in main navigation. This thing with menu is easy to do if your template allows you to have a menu bar.

    I hope this helps.
     
    cyberLana, Jan 7, 2011 IP
  5. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you use Twenty Ten or Thesis, it would be really easy, just drag and drop the menu.

    If you use another themes, then you should know a bit PHP coding, replace or add wp list pages with wp list categories.
     
    KimiGermany, Jan 8, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    To clarify a little more on this, the TwentyTen, Thesis, Hybrid and other themes/frameworks utilize WP's menu system. They all have a "primary menu" that you can create in the Admin area and add Pages, Categories, hard-coded links, etc to the menu. The menu setup can be found under your Appearance tab in the Admin area.

    Looking at the TwentyTen theme files functions.php and header.php you will see how the Primary Menu is registered and then applied to the theme.

    functions.php registers the menu:
    	// This theme uses wp_nav_menu() in one location.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Navigation', 'twentyten' ),
    	) );
    
    Code (markup):
    header.php applies the menu:
    			<div id="access" role="navigation">
    			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->
    
    Code (markup):
     
    Dodger, Jan 8, 2011 IP