homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

News feed
News feed for wordpress

Msg#: 4437081 posted 3:06 pm on Apr 4, 2012 (gmt 0)

Most wordpress themes I have used in the past come with a simple news feed for footer for the whole site or homepage, if not they use a widget to display this but I have noticed more and more that free themes don't integrate this, so I was wondering if there was a plugin that can add a news feed to a footer or is there a standard bit of html that I can add into the footer.php to make one?



WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4437081 posted 12:54 pm on Apr 5, 2012 (gmt 0)

Welcome to WebmasterWorld!

Do you mean a news feed from another website? If so, these are RSS feeds and there are several ways to read and republish them on your website. Just look for RSS feed plugins.


Msg#: 4437081 posted 1:08 pm on Apr 5, 2012 (gmt 0)

Thanks for the welcome lorax, and no I mean feed through my own posts to the home page of the site on free themes that don't have that feature.


WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4437081 posted 4:20 pm on Apr 5, 2012 (gmt 0)

The below example pulls the 5 latest posts from categories 6 and 12.

while (have_posts()) {
$date = get_the_date();
$permalink = get_permalink();
$title = get_the_title();
echo "<p><a class=\"your-post-class\" href=\"$permalink\" title=\"$title\">$title</a> $date By: ";
echo '</p>';

More info on query_posts in the manual.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
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