marko krstić

Collections

Archives

Remove "Category:" text in archive page title

<h1>
  <?php echo single_cat_title( '', false );?>
</h1>

The result will be just Category name

Default is: Category: Category name

If you want to change "Category:" use this:

<h1>
  <?php echo single_cat_title( 'Some text: ', false );?>
</h1>

Thanks, Hammad Wali for sharing this useful code!

Let's Connect

Feel free to reach out for collaborations or just a friendly hello ?
[email protected]
linkedininstagramdribbblefacebook-official