WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way so that I can delete category's name in the pages.

I tried to find something for category in index.php but I couldn't find anything.

Please help me to solve this problem.

Thanks in advance

share|improve this question
up vote 2 down vote accepted

What theme are you running?

Are you referring to Pages or Posts because they are two different types or rather, what we call Post Types.

  • Pages are normally controlled via your page.php template file
  • Posts are normally controlled via your single.php template file

Commonly you will find category and tag functions in your single.php file, but calls to such functions are not strictly limited to a single.php file. They can in fact be used in multiple theme files.

So for example,

  • if you are viewing a Single Post, then look within single.php
  • if you are viewing a list of your Posts, then look within archive.php

You will be looking for template tags such as,

<?php the_category(); ?>


<?php the_tags(); ?>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.