• Hi.
    I have 2 questions.
    First, using
    <?php the_category(); ?>
    it creates a list, how do I ONLY get the category name?
    Second, why doesn’t
    <?php comments_number(“%”, “%”, “%”); ?>
    work as I would expect? I always want it to only output the number.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter winkle

    (@winkle)

    Just found out the second question can be solved using:
    <?php comments_number(0, 1, “%”); ?>
    Thanks Matt.

    Thread Starter winkle

    (@winkle)

    Passing an argument like <?php the_category(‘,’); ?> solved it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_category() and comments_number()’ is closed to new replies.