Support » Fixing WordPress » Get_categories?

  • I’m setting up a site which will have 2 main sections

    The tree will look like this –

    – Reviews
    – Hardware
    – Software
    – Games

    – Guides
    – Hardware
    – Software
    – Games

    Now what i want to do is make a Reviews Page and a Guides page so that it shows these relevant categories on the page.

    The code i’ve tried is giving me back a blank page –

    Template Name: Reviews
    <?php get_header(); ?>
    <?php include(TEMPLATEPATH."/sidebar_l.php");?>
    <!-- Main Post Content starts from here -->
    <div id="content">
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="entries">
    		<h3 class="heading"><?php the_title(); ?></h3>
    		<div class="post">
    			<?php the_content(('<div class="more"><strong>Read More...</strong></div>'));?><div>
    <?php get_categories(); ?>
    		<!--/post--><?php endwhile; else: ?>
    			<?php _e('<div class="entries"><h3 class="heading" align="center">Sorry, No Posts Matched Your Criteria.</h3><div class="cap"></div></div>'); ?>
    			<?php endif; ?>
    	  <div class="cap">
    </div><!--/Content -->
    <!-- Main Post Content Ends here -->
    <?php include(TEMPLATEPATH."/sidebar_r.php");?>
    		<div class="clear"></div>
    <?php include(TEMPLATEPATH."/footer.php");?>
    	</div><!--wrap news-->

    Any help, would be greatly appreciated 🙂


  • The topic ‘Get_categories?’ is closed to new replies.