开发者

WordPress on other parts of my site

I have a WordPress installation开发者_如何学Python on my site, and I want to display WP posts on other parts of my site (that is outside the WP installation). How do I do that with PHP?

I tried to search this type of question on Stack Overflow, Google and WP official site but I didn't find anything.


This sites explains how to do it.

http://www.corvidworks.com/articles/wordpress-content-on-other-pages

http://www.webopius.com/content/139/using-the-wordpress-api-from-pages-outside-of-wordpress


Include the wp-blog-header.php from your WP installation. Then you have access to all WordPress functions and the database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜