• I’d like to hide the listing of categories and tags from the viewers in the posts. However, I do not need to limit categories from users or administrators. How do I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • with css in style.css of your theme?

    or more permanent by removing the codes from the corresponding template files of your theme.

    a link to your site might get you more useful replies.

    Hi adunate,

    Like alchymyth says, the best solution is to remove the category and tag info from your template.

    In your template files (ie. pages.php) look for something like below and remove it:

    <?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?>

    If you really want to hide them from visitors and show them to logged in users I’m thinking an “if statment” is your best bet. Something like:

    <?php if ( is_user_logged_in()) : ?>
    &nbsp;
    <?php else : ?>
    <?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?>
    <?php endif ; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide all categories and tags from posts’ is closed to new replies.