I need some help. I have a “static” site running off of WP, and I have a second WP install running as a blog. I’d like the last 5 posts of the blog to appear in the main page of the “static” WP site. This main page is made by simply creating a category with only one post and using the “single category” index.php hack to make only this category appear as the home page. I’ve also created a special “include.php” page with its own stripped-down stylesheet in the WP blog installation. But I don’t know how to “include” this include.php file in the static post listed above. I tried this:
<?php include(‘http://path-to-blog/include.php’); ?>
I put it in the content of the main post, but it didn’t do anything. I guess it ignores PHP code?
What should I do? I looked all over the forums but I couldn’t find anything. Nothing in the Wiki either. I’m sure it is there, I just couldn’t find it…
- The topic ‘display posts from external blog’ is closed to new replies.