Using wordpress data in separate PHP application

I have user dynamic web application, however it also contains some static pages(like Terms of Usage,…) and will contain some articles – for administration of this content I would like to use wordpress – so I wonder if there is a way how to include some wordpress’s PHP which would only include the processed the_content(); and needed WP objects?

Or at least is there some way how to get raw html from data extracted from wordpress DB?

PS: Iframe solution just seems wrong to me… and would not work for me anywas…

Related posts

Leave a Reply

2 comments

  1. If you’re building your own php and don’t want to use custom templates / post-types / etc… You can simply load WordPpress via

    <?php include 'path_to_wordpress/wp-load.php'; ?>

    And then you will have access to all the WordPress Functions / Objects 🙂

    Hope this helps.