php - Can I use Wordpress as an API to load content to my site? -


i'm using wordpress manage posts in website, don't want use wordpress template/visualization. use manage content , program bit display content in website.

well, can access wordpress database , load content own queries. want know if viable use wordpress create bridge between site , wordpress database.

simplifying, want know if wordpress provides methods getallposts(), getallcomments manage database connection, queries , returns objects or need build in application.

not native wordpress, "viable" through plugins. example: http://code.google.com/p/wordpress-posts-api/ claims want posts, , expand load comments - or may find exact plug in want bit of searching.

i've never used 1 written else this, have built similar functionality expose posts etc xml feeds (then displayed in flash, example). relatively easy if start else's plug-in , expand.

just 1 word of warning - these plugins great operate in full wordpress environment, easy run. downside operate in full wordpress environment, , therefore inefficient under high stress. if you're going hammer it, i'd write caching buffer first, , make full call wordpress when cache expires.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -