<?php
/* get the database configuration automatically starts here */
$server_url = $_SERVER["SERVER_NAME"];
$doc_root = $_SERVER["DOCUMENT_ROOT"];
require($doc_root . \'/wp-config.php\');
$post_id = 5;
query_posts( \'p=\' . $post_id );
global $more;
$more = 0;
// the Loop
while (have_posts()) :
the_title();
the_content( \'Read the full post »\' );
endwhile;
?>
我已经尝试并找到了解决方案。