Wordpress - Get actual category name

/ Published in: PHP
Save to your folder(s)

How to get actual category name in wordpress if is_category() is true

Copy this code and paste it in your HTML
  1. <?php
  2. if (is_category())
  3. echo single_cat_title();
  4. ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.