Styling Incoming RSS Feeds (1 post)

  1. JRiley21
    Posted 5 years ago #

    Hi all. :)

    I'm not sure how realistic this is, but I thought it was worth asking everyone.

    I've got an incoming sports scores RSS feed displaying on the bottom of one of my pages. I'm pulling it using this code:

    <div id="scores" style="width: 1000px; height: 50px; margin-top: 10px;">
    <?php include_once(ABSPATH.WPINC.'/rss.php');
    wp_rss('http://www.sportsnetwork.com/aspdata/clients/sportsnetwork/NBArssscores.aspx', 6); ?>

    I've managed to style it some with a few list-item CSS classes, but beyond that, I really have no control on how it displays. For example, the content comes in and displays like this:

    Lakers vs. Heat

    I'd prefer it to display like this:

    Lakers vs.

    I've tried shrinking the list-item sizes to force it below, but with the ever changing teams/data, there's no way to define that width correctly for every piece of data.

    I guess my question is... what are my options when it comes to displaying incoming RSS feed data?

    Any help would be great, thanks! :)

Topic Closed

This topic has been closed to new replies.

About this Topic