开发者

WordPress on other parts of my site

开发者 https://www.devze.com 2022-12-25 06:16 出处:网络
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 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

精彩评论

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