Category.php Won’t List Titles For Me!
-
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 https://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(); ?> - ”>
- The topic ‘Category.php Won’t List Titles For Me!’ is closed to new replies.