homepage Welcome to WebmasterWorld Guest from 54.197.15.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Help Creating A RSS Feed Page for Wordpress
imbckagn

5+ Year Member



 
Msg#: 4227356 posted 11:44 pm on Nov 5, 2010 (gmt 0)

Does anyone know of a plugin or how to create a page of multiple feeds just like this [wisebread.com...]

I need the feed to appear on a specific page only and post the latest post excerpts from newest to oldest with the image and website URL exactly like in the link above.

Thanks

 

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4227356 posted 3:47 pm on Nov 6, 2010 (gmt 0)

Plugin - [wordpress.org...]

You can also create a custom page to include the same. The tags for building this page can be found here: [codex.wordpress.org...]

imbckagn

5+ Year Member



 
Msg#: 4227356 posted 6:25 pm on Nov 6, 2010 (gmt 0)

Thanks lorax. I tried the first plugin already and couldn't get it to do what I wanted but I will check out the second option.

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4227356 posted 6:57 pm on Nov 8, 2010 (gmt 0)

What didn't it do for you?

londrum

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4227356 posted 9:08 pm on Nov 8, 2010 (gmt 0)

maybe you could look into creating your own feed. its actually very easy to do - easy peasy.
all you have to do is add a new function to the function.php file in your theme's folder.
something like this:

function name_of_your_feed() {
header('Content-Type: text/xml; charset='.get_option('blog_charset'), true);
echo '<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
// insert all the feed stuff you want here
</rss>';
add_feed('name_of_your_feed', 'name_of_your_feed');

you can then access the feed at
http://www.example.com/?feed=name_of_your_feed

imbckagn

5+ Year Member



 
Msg#: 4227356 posted 10:08 pm on Nov 13, 2010 (gmt 0)

Thanks guys I figured it out this is what I started with if anyone is interested

<?php
include_once $_SERVER['DOCUMENT_ROOT'].'/php/simplepie.inc'; // path to include script

$feed = new SimplePie(); // bake a new pie
$feed->set_feed_url('http://domain.tld/your-feed/'); // specify feed url
$feed->set_cache_duration (999); // specify cache duration in seconds
$feed->handle_content_type(); // text/html utf-8 character encoding
$check = $feed->init(); // script initialization check
?>

<h1><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h1>
<p><?php echo $feed->get_description(); ?></p>

<?php if ($check) : ?>
<?php foreach ($feed->get_items(0, 7) as $item) : ?>

<h2><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h2>
<p><?php echo $item->get_description(); ?></p>
<p><small>Posted on <?php echo $item->get_date('j F Y @ g:i a'); ?></small></p>

<?php endforeach; ?>
<?php else : ?>

<h2>Feeds currently not available</h2>
<p>Please try again later</p>

<?php endif; ?>

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4227356 posted 12:21 am on Nov 14, 2010 (gmt 0)

Thanks for posting a follow up. I'm glad you got it sorted!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved