2012-01-24 48 views

回答

1

嗨,

可以有多种选择来做到这一点,我提他们三个人:

Menthod#1

可以在WordPress和比使用创建一个页面模板该页面模板创建一个页面。现在,您可以在任何网站上的iFrame中使用该网址。

方法2

在这段代码的服务器的根目录下创建一个文件:

<?php 
// Include WordPress 
define('WP_USE_THEMES', false); 
require('wp-load.php'); 
query_posts('showposts=1'); 
while (have_posts()): the_post(); ?> 
<h2><?php the_title(); ?></h2> 
<?php the_excerpt(); ?> 
<p><a href="<?php the_permalink(); ?>">Read more...</a></p> 
<?php endwhile; ?> 

现在你可以调用的iFrame这个文件,你必须将最新的帖子。

方法#3

可以使用WordPress的从RSS源,要么使用PHP或jQuery来样式。

感谢

Peachlabs

+0

谢谢。那工作。 – themajiks

+0

工作完美,不知道为什么你没有投票。谢谢! – brpyne

+0

@brpyne你可以投我一票.... –