1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

( ) Display any RSS anywhere on your Wordpress blog

Discussion in 'Blogging' started by projectx, Mar 5, 2009.

  1. projectx

    projectx Power Member

    Joined:
    Dec 4, 2006
    Messages:
    644
    Likes Received:
    721
    This is a pretty basic but simple code to show any rss feed on your blog where you want. For example in your side bar or footer.
    code:
    <?php include_once(ABSPATH . WPINC . '/rss.php');
    wp_rss('rss url will placed here', 10); ?>


    the number 10 is the number of rss entries to be displayed, you can change it to any number.

    If you want it for expample in a html scroll area use something like this:

    <table cellpadding="0" cellspacing="0" style="width:300px;">
    <tr>
    <td><div style="overflow:auto; height:300px; width:170px"><?php include_once(ABSPATH . WPINC . '/rss.php');
    wp_rss('rss url will placed here', 10); ?></div></td>
    </tr>
    </table>


    Pretty simple script, but can be usefull for some of yalli guess.
     
    Last edited: Mar 5, 2009