WordPress.org

Ready to get started?Download WordPress

Forums

Get_categories? (1 post)

  1. aruffell
    Member
    Posted 5 years ago #

    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 -

    <?php
    /*
    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>
    			  <ul>
    <?php get_categories(); ?>
    <!--/actions-->
    		</ul>
    </div>
    		</div>
    		<!--/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><!--/cap-->
    	</div><!--/Entries-->
    </div><!--/Content -->
    <!-- Main Post Content Ends here -->
    <?php include(TEMPLATEPATH."/sidebar_r.php");?>
    		<div class="clear"></div>
    	</div><!--/main-->
    <?php include(TEMPLATEPATH."/footer.php");?>
    	</div><!--wrap news-->
    </body>
    </html>

    Any help, would be greatly appreciated :)

    Andy

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.