I would like to store a wordpress page as text on the server for access in a custom application. Specifically I want a div of class '.entry-content' on a page url like below
I've tried a get_post() call in php like below but recieve a response of "Reload the page to get source"
<?php require_once("./wp-blog-header.php"); ?> <?php $post_id = 7914; $queried_post = get_post($post_id); echo $queried_post; ?>
Is there any way I could either of the tasks below?
• Force Wordpress to create an html version of the above page • Create a text dump of the page that resides on the server