<?php 
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
    if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
    else $path = 'wp-admin/';
require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
wp_die("wp-config.php dosyasinin olup olmadigini kontrol ediniz.");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
query_posts('showposts=5');
endif;
 
?>
<?php while (have_posts ()): the_post(); ?>
    <h2><a target="_blank" href="<?php the_permalink(); ?>"> <?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
 
<?php endwhile; ?>
bu sekilde yaparsak yeni pencerede acilir.

veya Daha basit kodla

<?php
define('WP_USE_THEMES', false);
require('wp-load.php');
query_posts('showposts=5');
?>

<?php while (have_posts ()): the_post(); ?>
    <h2><a target="_blank" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
 
<?php endwhile; ?>