• 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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

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

    add_filter('the_tags','wp_rel_nofollow');
    echo get_the_tag_list();

    Thread Starter mystery777

    (@mystery777)

    I can’t find where to add this code… can you help plz?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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?

    Thread Starter mystery777

    (@mystery777)

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

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

    Time for some reading: Template_Hierarchy

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    Thread Starter mystery777

    (@mystery777)

    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….

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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/

    Thread Starter mystery777

    (@mystery777)

    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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding Nofollow Tag to Post Tags’ is closed to new replies.