Support » Plugin: HungryFEED » NoFollow Links

Viewing 9 replies - 1 through 9 (of 9 total)
  • Great plugin but its very easy to get pandalized because of using it. An option to make links nofollow would make it safe in the eyes of Google.

    Good idea!
    Try this: Look for the following code in hungryfeed/hungryfeed.php (latest Hungryfeed version 1.6.3 – line 414 in my PHP editor (Dreamweaver) – may be different in other editors.)

    ? '<div class="hungryfeed_item_title"><a href="' . $item->get_permalink() . '" '. $target_code .'>' . $title . "</a></div>\n"

    Add rel=”nofollow” after <a and before href

    The result should look like this

    ? '<div class="hungryfeed_item_title"><a rel="nofollow" href="' . $item->get_permalink() . '" '. $target_code . '>' . $title . "</a></div>\n"

    Works for me…

    Here’s a sample of the generated result:
    div class="hungryfeed_item_title"><a rel="nofollow" href="http://*******">Windows 8 Recovery Disk</a>

    Plugin Contributor Jason


    That’s a good idea for a built-in option. Something you could do right away without editing the plugin code would be to use the custom template feature like so:

    [hungryfeed url=”http://your.feed.url” template=”1″]

    Then if you go to the hungryfeed settings page – you’ll see there are 3 templates that you can customize. It’s basically just simple HTML and you can put in the nofollow tag there.

    Very good tip Jason!!!



    Why isn’t this option build in the file?

    I have little knowledge of coding, Can someone please tell me where i need to insert this line ?

    Go to Hangryfeed settings from your WordPress Dashboard
    Scroll down to find the CUSTOM TEMPLATES
    Let’s say you want to use Custom Template 1
    Look for this line: (Line 2)

    <h3><a href="{{permalink}}">{{title}}</a></h3>

    Replace the entire line with this:

    <h3><a rel="nofollow" href="{{permalink}}">{{title}}</a></h3>

    This is a better way as recommended by Jason than the method I originally posted – you won’t need to modify the plugin files each time there’s an update.



    Like i said before, i don’t have any knowledge about coding or customs.

    So what refers a custom to?
    I have 3 customs.

    Custom 2 and 3 have the exact same code. See as below:

    <div class="hungryfeed_item">
    <h3><a href="{{permalink}}">{{title}}</a></h3>
    <div>Author: {{author}}</div>
    <div>Posted: {{post_date}}</div>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I understand what line should be replaced.

    But please tell me very clear, what this exactly does, when i replace this line, concerning Google.

    And i see i have 2 customs, with the same content. Can i delete one custom?


    When you add the rel=”nofollow” to outgoing links, it tells Google not to follow the link to the article.
    What this does – rel=”nofollow” prevents the links from embedded RSS feeds passing Page Rank away from your post, to the pages the feed links to.
    WordPress does this with links added to comments and trackbacks.
    You’d normally want to keep as much Page Rank for your article as possible – if you use the feed in a sitewide widget – then every page loses rank unless the links are nofollowed.
    With Google becoming more and more sticky about spammy backlinks, it’s good for both your site, and the site sending the RSS feed, to nofollow the links

    There’s lots of information about Google and links on the web. Try Googling ” Matt Cutts rel=nofollow ” and Matt Cutts backlinks just for starters. (Matt Cutts is on the Google Spam team, and the most reliable source of information – from the horses mouth)

    You can delete the content of the template if you want to – unless you are using that template.
    But why bother – unless the template is actually used in a post somewhere – it’s only there in the admin settings.

    You can remove any of the lines except the opening and closing <div> to modify for a different feed content.

    Hope this helps

    Can the templates be used to add a nofollow to links embedded in the description field? If yes how would this be done?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘NoFollow Links’ is closed to new replies.