• HOW TO: Display the WP standard RSS button next to any link with an RSS feed (under the advanced section) in your blogroll.
    —–
    DISCLAIMER
    This is my first bit of php hacking in a core WP file – use at your own risk!

    Please advise if you find a problem with it and I’ll update this code.
    —–

    Delete Line 94 of bookmark-template.php –

    $output .= $before;

    and replace it with this –

    $feed = clean_url($row->link_rss);
    
       if ( !$feed )
          {
    	$output .= $before;
          }
       else
          {
    	$output .= $before 	. '<a href="' . $feed
            . '"><img src="' . get_bloginfo('url')
    	. '/wp-includes/images/rss.png"
            alt="rss"></a>&nbsp;';
          }

    This is conditional code that’ll make your blogroll/links look like this example here (about halfway down link on left hand side, alukeonlife for example)

    It works by appending the RSS link and image to the before string in the get_links function

    All comments welcome!

Viewing 1 replies (of 1 total)
  • Thread Starter dubyah

    (@dubyah)

    How can I suggest this gets added to the core code? I’m sure if more people knew it could be done, they’d want to do it!

    Any mods tell me?

Viewing 1 replies (of 1 total)
  • The topic ‘HOW TO: Display RSS feeds for sites in your blogroll’ is closed to new replies.