11 Celebrities who are real geeks
headline »
Sat, 27/06/09 – 0:00 | 3 Comments

Those are the days when celebrities were really gorgeous, having great fit, wealthy and also glamorous. But now there are a lot of changes happening including the return of witty jokes, cook books and films and also the TV shows about the aliens and supernatural. Lots of geeks are given really encouraging roles which has put the traditional celebs to the back. Let’s look at some celebs who are the upcoming geeks who seek fame and fortune.

Read the full story »
Home » Guide, How to, Tips

2 Methods - How to Post RSS Feed on your Wordpress Blog

Submitted by ksbnok on Friday, 12 June 2009No Comment

Recently I was working on a project to create a mashup website and for the first time faced the need to post RSS feeds from other websites on one place. Firstly I thought I would do the coding myself but after some research I knew that Wordpress in itself includes some functions (wp_rss() & fetch_rss()) which make your task easier

RSS
wp_rss() Vs fetch_rss()

wp_rss() fetch_rss()
Using this function is easier It is also easy but takes few more lines
It increases the load-time of your website because it downloads the whole post It doesnot increase because it downloads only the post links not the whole contents from the websites
Almost no customization can be done with this function Much customization can be done with this function




How to use wp_rss()

<?php
include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://feeds2.feedburner.com/PankajSpeaks', 5);
?>

where 1st parameter is the feed of the website you want to post the feed from while the 2nd parameter tells how many post links to be shown.

You just have to put this code in appropriate php file of your theme so that it is visible as post links from your other website or somebody else’s website for example if I want the feed to appear in my sidebar I will put it in my sidebar.php.

When you use wp_rss() for posting the feeds & hover the posted post links on your blog a big dialogue box is popped containing the content behind that link which doesnot look nice so to prevent this you can use fetch_rss().

Subscribe

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.