在另一个外部php页面上调用wordpress发布内容

public |-- index.php (external) |-- post-viewer.php (external) |-- /WP (wp installation)

I'm trying to call postings from wordpress installation from external page. I managed to display post title, excerpts, thumbnail and post content from the index page (by following tutorial : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website).

When I clicked on the post title on index.php my browser get redirected to Wordpress site (which I want to be hidden from public).

How do you make the post content appears on post-viewer.php instead ?

Thanks

Load the WordPress core functions and load trough the get_post option

<?php

   require_once("wp-load.php");

   $post = get_post( 12 ); // your post id

   echo $post->post_content;

?>