Help with WP template

Discussion in 'HTML & Website Design' started by Ayrshire Web Design, Jan 10, 2009.

  1. #1
    What should I do with this line to display my categories on the page instead of the blank page?

    www.fresh-ayr.com

    branford magazine theme

    Extract:
    <?php
    /*
    Template Name: 3-Column-Page
    */
    ?>
    <?php get_header(); ?>
    
    <div id="pageleft">
      <?php
    // this is where you enter the ID of the category you want to display
    $display_categories = array(5);
    foreach ($display_categories as $category) { ?>
      <?php query_posts("showposts=1&cat=$category"); ?>
      <h3><a href="<?php echo get_category_link($category);?>">
        <?php 
    	// this is where the name of each category gets printed	  
    	  single_cat_title(); ?>
        </a></h3>
      <?php while (have_posts()) : the_post(); ?>
      <?php
    
    
    PHP:
    Thanks
     
    Ayrshire Web Design, Jan 10, 2009 IP
  2. Ayrshire Web Design

    Ayrshire Web Design Banned

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no one know? just need to know what to put in the line for cat ID
     
    Ayrshire Web Design, Jan 10, 2009 IP