Forums

Category.php Won't List Titles For Me! (2 posts)

  1. thenewhustle
    Member
    Posted 2 years ago #

    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(); ?>

  2. ”>
    <?php the_title(); ?>
  3. <?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(); ?>

  • thenewhustle
    Member
    Posted 2 years ago #

    *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!

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags