• Hey guys: hope someone can help. My category page is not showing – copied the following code that supposedly works – made a category.php file from the archive.php – here’s what I have (sorry if it’s basic, pretty novice – can plug and play but not solve problems) – see http://www.thenewhustle.net/category/motivation – but it won’t load – T_string error, line 27 or 29:

    <?php get_header(); ?>

    <div id=”content”>
    <?php $temp_category = single_cat_title(”,false); if (!empty($temp_category)){ // give index ?>
    <h1>
    <?php single_cat_title(); ?>
    </h1>
    <p><?php echo(category_description(the_category_ID(false))); ?></p>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    • ”>
      <?php the_title(); ?>
    • <?php endforeach; else: ?>
      <p>
      <?php _e(’Sorry, no posts matched your criteria.’); ?>
      </p>
      <?php endif; ?>
      <?php }else{ // give details or single post ?>
      …Here Code For Normal Post Overview
      <?php } ?>
      </div>
      <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • Thread Starter thenewhustle

    (@thenewhustle)

    *Note: – have a temporary category archive page up that shows the same page for each individual /category/ (not what I want – I’d like the above code to work if possible!)

    Any help GREATLY appreciated!

Viewing 1 replies (of 1 total)
  • The topic ‘Category.php Won’t List Titles For Me!’ is closed to new replies.