• Hi –

    I’ve used my index.php and am testing category pages. Created a category-10.php. It retreives all posts, not category posts. At present, my other non-defined category links (in sidebar) bring up correct posts. Have reveiwed codex info. What could be the problem? 10 is the correct id.

    Here’s my code up to the content…

    <?php include('http://www.chefsline.com/blog/wp-content/themes/chefsline/headerclasroom.php'); ?>
    <?php include ($_SERVER['DOCUMENT_ROOT']."/clat5/clat5_in.php"); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_date('','<h2>','</h2>'); ?>
    <style type="text/css"/>
    <!--
    .style2 {font-size: small}
    -->
    </style>
    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a>" rel="bookmark">
    <?php the_title(); ?>
    </a></h3>
    <div class="meta"> Posted
      @
    <?php the_time() ?>
    <?php edit_post_link(__('Edit This')); ?>
    </div>
     <div class="storycontent">
    <p>
    <script src="http://feeds.feedburner.com/~s/Chefsline-TheCulinaryHotline?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"/></script>
       <br/>
    <?php the_excerpt(__('(more...)')); ?>
  • The topic ‘Category-*.php not working, help please’ is closed to new replies.