• Resolved DarkXess

    (@darkxess)


    Hey all, I know what your thinking, this is easy! but no,.. I am not simply wanting to remove the tag from my post! what I want is for it to stop showing on there, but ONLY in my tag cloud! as you can see here at my website: https://www.darkxess.com you will see my posts have tags and also the tags are shown in my tag cloud too! is there a way to only show them in the tag cloud, but the tags are still assigned to the post?

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes – simply don’t use <?php the_tags();?> within the Loop in your template files.

    Hi,
    There are a number of ways to do this. You can edit the template that shows them. This can vary depending on your template, and will require a willingness to edit bits of PHP (this disqualifies the vast majority of WP users).

    I like to use a quick and dirty method, vanishing them via CSS. If you go to Appearance, Editor, and edit style.css, you can stick this bit of code in there, and the tags will go away.

    .tags  {
      display: none;
    }

    If you do that, check your site after doing so… my command is somewhat of a blunt instrument, so make sure you haven’t vanished tags that you still want. For instance, this command will leave your Tag Cloud alone, but will also vanish tags on individual Post pages, and possibly elsewhere.

    Cheers, Dave

    Thread Starter DarkXess

    (@darkxess)

    Thanks guys! Flemenco I did try your way first and it didnt work ??

    And Esmi, which php file am i looking for? as ive found this:

    <p class="tags"><?php the_tags(''); ?></p>

    In around 3 files, and that is the closest of which you told me.

    I should remove it? or edit it? or… ?

    Thanks

    Try removing it.

    Thread Starter DarkXess

    (@darkxess)

    Removing what? the whole:

    <p class="tags"><?php the_tags(''); ?></p>

    And which php files should I remove it from? I dont want to make
    a mistake and mess everything up! lol.

    Removing what? the whole:

    Yes

    And which php files should I remove it from?

    All 3 if you don’t want any tags showing except in your tag cloud.

    Thread Starter DarkXess

    (@darkxess)

    Thanks mate! that did it .. ??

    *Resolved.

    Good show… my command probably was not specific enough in the CSS cascade. When I tested it in my browser, .tags was in the context of several other commands, and I didn’t want to bork those.

    Esmi’s the guru! And ultimately, her solution is the most solid. Mine is more like a quick patch.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove post tags from posts?’ is closed to new replies.