Support » Themes and Templates » categories don't show on first page

Viewing 12 replies - 1 through 12 (of 12 total)

replase <?php single_cat_title(); ?> with <?php single_cat_title('',true); ?>or <?php the_category(', ') ?>

Ok, we are getting somewhere but this is weird:
– if I use your first suggestion,'<?php single_cat_title(”,true); ?>’ the categories on the left hand side work but not the right hand side.
– If I use your other suggestion, ‘<?php the_category(‘, ‘) ?>’ the right hand side works but not the left hand side.

What can I do about that?

@chinmoy29 is on to something:
http://wordpress.org/support/topic/problem-with-single_cat_title-after-upgrading-to-wordpress-30?replies=9

try and replace:
<?php single_cat_title(); ?>
(which appears two times in your code)
with:
<?php echo get_cat_name($ategory); ?>

http://codex.wordpress.org/Function_Reference/get_cat_name

the php echo didn’t work, but the

‘<?php the_category(‘, ‘) ?>’

did work, when I put it in properly in both places.

THANK YOU so much for your help! I am forever in gratitude!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘categories don't show on first page’ is closed to new replies.