Support » Themes and Templates » Category-*.php not working, help please

  • 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(''); ?>
    <?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}
    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a>" rel="bookmark">
    <?php the_title(); ?>
    <div class="meta"> Posted
    <?php the_time() ?>
    <?php edit_post_link(__('Edit This')); ?>
     <div class="storycontent">
    <script src="<?php the_permalink() ?>" type="text/javascript" charset="utf-8"/></script>
    <?php the_excerpt(__('(more...)')); ?>
  • The topic ‘Category-*.php not working, help please’ is closed to new replies.