• Versipellis

    (@versipellis)


    I’ve got a site and it requires an RSS feed to run on the bottom of the home page, well it takes up about half the home page.

    I’ve got an RSS feed / code from another site I’ve worked on (rss.php) and I’ve tried just ‘require_once(‘rss.php);’ but that throws up a tonne of errors.

    I’ve got PHP Exec – to allow posts/pages to run php and it works great. Problem is it throws one hell of a fuss trying to get the rss feed.

    I’ve looked around at some plugins and other posts but not found what I’m after.

    I need the RSS feed to be called up within a page created within wordpress eg:

    code for the static bit of page here
    code for RSS feed here

    I need to be able to limit it to 1 entry and it needs to be CSS customisable. Any help would be greatly appriciated.

    Thanks kindly in advance,

    Versi

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Thread Starter Versipellis

    (@versipellis)

    That link lead me to a tonne of stuff that isnt really related to the question I asked as none of it seems to do what I want, I have searched for a plugin to no avail, I did say so in my first post 🙁

    Thread Starter Versipellis

    (@versipellis)

    Found something thats working but not quite how I want, I’ll see if I can get it to run better.

    Thread Starter Versipellis

    (@versipellis)

    <phpcode>
    <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('http://www.evolutionbusinessservices.co.uk/charlene/blog/?feed=rss2'); // specify feed url
    $items = array_slice($feed->items, 0, 1); // specify first and last item
    ?>
    
    <?php if (!empty($items)) : ?>
    <?php foreach ($items as $item) : ?>
    
    <h2><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></h2>
    <p><?php echo $item['description']; ?></p>
    
    <?php endforeach; ?>
    <?php endif; ?>
    </phpcode>

    I’m now using the following if anyone can help me make this show an entire entry and not a summary I’d be very grateful 🙂

    Thanks,

    Versi

    Thread Starter Versipellis

    (@versipellis)

    Still looking for help in showing all and not a summary,

    Versi

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Embed RSS into a Page’ is closed to new replies.