Warning: base64_decode() expects parameter 1 to be string, array given in /home/teamgillett/rateladder.com/wp-content/plugins/askapache-google-404/askapache-google-404.php on line 156
Add P2P Lending News To Your Website | P2P Lending, Peer to Peer Lending, People to People Lending | P2P Lending News, Information, Borrowing and Lending Strategy

Add P2P Lending News To Your Website

Apparently this has ability has been built into wordpress for quite some time but a friend of mine recently pointed up that it can be done (pfblogs popular posts added to sidebar.)  Here is the wordpress codex for this feature: http://codex.wordpress.org/Function_Reference/fetch_rss.

To add the p2p lending news to my sidebar I added the following to my theme…

<h3>P2P Lending News</h3>
<?php 
// Get RSS Feed(s)
include_once(ABSPATH WPINC ‘/rss.php’
);
$rss fetch_rss(http://www.p2pnobank.com/feed’
);
$maxitems = 10
;
$items array_slice($rss->items0$maxitems
);
?>

<ul>
<?php if (empty($items)) echo ‘<li>No items</li>’
;
else
foreach ( 
$items as $item ) : 
?>
<li><a href=’<?php echo $item['link']; ?>‘ 
title=’<?php echo $item['title']; ?>‘>
<?php echo $item['title']; 
?>
</a> (<?php echo $item['dc']['creator']?>)</li>
<?php endforeach; 
?>
</ul>

Related posts:
If you liked this article, vote for it on del.icio.us and stumbleupon.


Categories:

Features



0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

aa algorithm axis azerbaijan banks benefit blog borrowers ceo Collections credit grade credit history credit information credit score curves doug fuller email friends and family good luck google income borrowers interest rate interest rates investments launch lenders lending institutions liquidity loans marketplace money mozambique peer to peer lending portfolio plan private data promissory notes quiet period registration statement risk securities and exchange securities and exchange commission spreadsheets sql student loans Zopa