Forums

Adding Nofollow Tag to Post Tags (10 posts)

  1. mystery777
    Member
    Posted 3 years ago #

    I want to be able to add nofollow tag to post tags. I've found the plugin here to be useful to adding nofollow to the tag cloud:

    http://wordpress.org/support/topic/144400?replies=15#post-859438

    but I would like a solution to the tags that appear in the homepage, underneath each post featured there. I have posts segments featured on my homepage, and their tags are there as well.

    Is there any solution for post tags... these tags that you create under posts.

    The challenge is that I want to add a nofollow tag to them but ONLY in the homepage, and not in individual posts. I want to give them a chance to get indexed but at the same time I want to limit link juice from leaking out of the homepage.

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    Instead of the_tags() in your template, use this:

    add_filter('the_tags','wp_rel_nofollow');
    echo get_the_tag_list();
  3. mystery777
    Member
    Posted 3 years ago #

    I can't find where to add this code... can you help plz?

  4. Otto
    Tech Ninja
    Posted 3 years ago #

    What is there to find? I gave you exactly where to put it.

    Instead of the_tags() in your template...

    What else can I add to that?

  5. mystery777
    Member
    Posted 3 years ago #

    WHERE in the template? the tags.php? index.php? functions.php?! I've searched all the template and no _tags() found...

  6. moshu
    Member
    Posted 3 years ago #

    I would like a solution to the tags that appear in the homepage, underneath each post

    Time for some reading: Template_Hierarchy

  7. Otto
    Tech Ninja
    Posted 3 years ago #

    I've searched all the template and no _tags() found...

    You sort of implied that your site displays tags already, in the first post. Well, if it displays tags, then somewhere it has a call to "the_tags". It has to have that, because that is how themes display tags.

  8. mystery777
    Member
    Posted 3 years ago #

    Ok, I'm using the LightBreaker theme from here:

    http://www.eblogtemplates.com/lightbreaker-wordpress-theme/

    Where is the tags function called from? I don't want to mess anything....

  9. Otto
    Tech Ninja
    Posted 3 years ago #

    That theme is extremely old and does not have proper tags support. It's hard-wired to expect the Ultimate Tag Warrior plugin, which is no longer updated, really.

    Might look for a more modern theme, like one of the ones here:
    http://wordpress.org/extend/themes/

  10. mystery777
    Member
    Posted 3 years ago #

    That's too bad... have changed to this theme a while back, after being told something similar about my other old theme, subtle glued (or something like this)...

    It'd be a hassle to change again... isn't there any easier to add nofollow tag to all links on homepage only?

Topic Closed

This topic has been closed to new replies.

About this Topic