WordPress.org

Ready to get started?Download WordPress

Forums

Display category name in category.php (2 posts)

  1. forefront
    Member
    Posted 8 years ago #

    I am doing one category.php for all categories and want to do:

    `<h2>category_name</h2>'

    How do I do that, please?

    Thank you.

  2. tanster
    Member
    Posted 8 years ago #

    I think it's something like:

    <h2><?php echo single_cat_title(); ?></h2>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.