jave.web
jave.web

Reputation: 15072

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...

Upvotes: 1

Views: 173

Answers (2)

Eek
Eek

Reputation: 1750

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.

Upvotes: 3

Aggelos Synadakis
Aggelos Synadakis

Reputation: 455

Why don't you build the entire webpage using Wordpress? You can do pretty anything with it, especially if you use custom post types and custom fields.

Anyway, I found this forum threat that might contain information useful to you http://wordpress.org/support/topic/adding-wordpress-page-to-another-html-site?replies=5

Upvotes: 1

Related Questions