static front page with RSS feeds
-
Let me explain.. I have 2 blogs under root as a & b. I created static index.php providing lings to the blogs. Now I want to add the RSS feeds or last 3posts from blog a & blog b onto the static front page which when clicked should go the coresponding..
After going thru the support forums I came across this code:<?php
require_once(“../saik/wp-blog-header.php”);
define(‘WP_USE_THEMES’, true);
?><?php
$lastposts = get_posts(‘numberposts=3’);
foreach($lastposts as $post) :
setup_postdata($post);
?>
” id=”post-<?php the_ID(); ?>”><?php the_title(); ?>
<?php the_content(); ?>
<?php endforeach; ?>This is working fine as I get the last 3 posts from blog a to static page. But how to get the last 3 posts from blog b in to the static page?
Anyone has idea..Thanks.
- The topic ‘static front page with RSS feeds’ is closed to new replies.