homepage Welcome to WebmasterWorld Guest from 54.205.144.54
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
alanchar1978




msg:4437083
 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?

 

lorax




msg:4437460
 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.

alanchar1978




msg:4437465
 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.

rocknbil




msg:4437555
 4:20 pm on Apr 5, 2012 (gmt 0)

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


<?php
query_posts('showposts=5&cat=6,12');
while (have_posts()) {
the_post();
$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: ";
the_author_posts_link();
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