WordPress.org

Support

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

[Resolved] categories don't show on first page

  • Irismartina
    Member

    @irismartina

    I am using sirup, but the categories don’t show on the first page. There is just a little black box which contains the link but no text. What to do? Grateful for any help with this.

    http://www.liberaldebatt.se/

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

@chinmoy

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

Irismartina
Member

@irismartina

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?

Michael
Forum Moderator

@alchymyth

@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

Irismartina
Member

@irismartina

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 ‘[Resolved] categories don't show on first page’ is closed to new replies.