If you maintain more than one blog or a forum, then you can display the RSS feed of your posts or articles from another website on your WordPress blog. Als u onderhoudt meer dan een blog of een forum, dan kunt u de RSS-feed van uw berichten of artikelen uit een andere website op uw WordPress blog kan weergeven. This would in turn give more exposure to your posts written else where. Dit zou op zijn beurt geven meer blootstelling aan uw berichten anders geschreven waar. Although there might be plugins to do this job, you can do this using just 2 lines of code. Hoewel er misschien plugins om dit werk te doen, kunt u dit doen met behulp van slechts 2 regels code. WordPress has a build in function to get the RSS feed of any website. WordPress heeft een ingebouwde functie om de RSS-feed van een website te krijgen.
We used this query to get the RSS feed of our We gebruikten deze query om de RSS-feed van onze Mobile Blog Mobile Blog in the sidebar. in de zijbalk. Here is the code. Hier is de Code.
<?php include_once(ABSPATH . WPINC . '/rss.php'); <? php include_once (ABSPATH. WPINC. '/ rss.php');
wp_rss('http://feeds2.feedburner.com/themobileblogin, 5); ?> wp_rss ( 'http://feeds2.feedburner.com/themobileblogin, 5);?>
The first line of code is to call to RSS core file of WordPress and in the second line we specify the feed URL and the number of posts to be displayed using the wp_rss() function. De eerste regel van de code is om te bellen op RSS-kern bestand van WordPress en in de tweede regel geven we de URL van de feed en het aantal posten moet worden weergegeven met behulp van de wp_rss () functie. You need to replace the feed URL with the URL you want to display in the sidebar. U dient ter vervanging van de feed-URL met de URL die u wilt weergeven in de zijbalk. You can see the Mobile Blog posts showing up in the sidebar of this blog using this method. U kunt de Mobile Blog posts weergegeven in de zijbalk van deze blog gebruik van deze methode.

You can also do some formatting using the <ul> and <li> based on your current theme style. U kunt ook doen wat opmaak met behulp van de <ul> en <li> op basis van uw huidige thema stijl.
NB: If you are not comfortable adding the code, you might get some plugins to do the job, but it is always advisable to go with lesser number of plugins. NB: Als u niet comfortabel toevoegen van de code, kun je nog wat plugins om het werk te doen, maar het is altijd raadzaam om te gaan met een geringer aantal plugins.
Thanks to Dankzij WP Recipes WP Recepten for this tip. voor deze tip.































Also, if your theme supports widgets then you can directly add RSS widget to your blog sidebar Ook als uw thema ondersteunt widgets dan kunt u rechtstreeks RSS-widget toevoegen aan uw blog zijbalk
Yes, Widget supported themes can directly add RSS Widget which intern usages above code and rss.php to retrieve feeds Ja, Widget ondersteund thema's kunnen direct toevoegen RSS Widget die intern gebruiken bovenstaande code op te halen en rss.php feeds
[...] How to Display Any RSS Feed on Wordpress Blog [...] [...] Hoe kan het weergeven van RSS-feed op Wordpress blog [...]
Small error in the code. Kleine fout in de code. Second line must be.. Tweede regel moet worden ..
wp_rss('http://feeds2.feedburner.com/themobileblogin', 5); ?> wp_rss ( 'http://feeds2.feedburner.com/themobileblogin', 5);?>
The ending ' is missing. Het einde 'ontbreekt.
What if you don't want the RSS to go to a sidebar, but the actual main body of your website? Wat als u niet wilt dat de RSS naar een zijbalk, maar de werkelijke hoofdgedeelte van uw website? I belong to an organisation that is globla and I'd like its news to appear in th emain body of my spin-off site, not just in a sidebar? Ik behoor tot een organisatie die is globla en ik had haar nieuws te verschijnen in th Emain lichaam van mijn spin-off site, niet graag alleen in een zijbalk?