Support » Fixing WordPress » Hiding Tags

  • Greetings!

    I would like to hide the tags that appear in posts under Categories and Archives. Preferably, hidden tags should be the default position throughout the site: christopherpavlov.com.

    What are the steps I need to go through to accomplish this?

    Can anyone help?

    Thank you in advance.

    Chris392

Viewing 7 replies - 1 through 7 (of 7 total)
  • How do I hide the tags that appear in posts listed under Categories and Archives at christopherpavlov.com?

    With the help of the Template Hierarchy article, determine what Template is displaying your posts, then look for the code that display categories and tags. That code is usually ‘the_category’ and ‘the_tags’.

    For example using the WordPress Default theme, in the wp-content/themes/default/index.php you would find this code and delete it:

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

    I switched to the M. Heillman theme.

    Then, in the Main Index Template (index.php) I deleted:

    <?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Posted in <?

    from line 24.

    In Single Post (single.php) I deleted:

    <p>Tags: ‘, ‘, ‘, ‘</p>

    From line 9.

    I didn’t have any success with the above so I also did the following:

    in Archives (archive.php) I deleted:

    <?php single_tag_title(); ?>

    from line 10.

    I have I made an error or missed something?

    Nicole

    (@nevaratoiel)

    I think you made at least one error by deleting the following code:

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

    You should’ve just deleted the following:

    <?php the_tags('Tags: ', ', ', ' '); ?>

    Not the:

    Posted in <?

    And I’m sure you didn’t need to delete:

    <?php single_tag_title(); ?>

    Did that make any sense?

    Thank you for your response.

    Unless I’m missing something, from what I can see the corrections you suggested have already been made, but not by me.

    Unfortunately, the tags are still present under Categories and Archives.

    Do you have any other ideas?

    Unless I’m missing something, from what I can see the corrections you suggested have already been made, but not by me.

    Unfortunately, the tags are still present under Categories and Archives.

    Do you have any other ideas?

    Thanks Michael H! I ‘m completely new at this and been searching around for a way to remove tags in posts but leave them in the tag cloud at the bottom. The removal of <?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> in the vina theme worked perfectly! Very chuffed 🙂
    http://www.ruthes.co.uk

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hiding Tags’ is closed to new replies.