Son yazıları şu kodlardan oluşturduğunuz bir .php uzantılı dosya oluşturup ana dizine upload edin.

Kullanıcı adı bölümünü kendinize göre düzenleyin.

<?php
include "/home/kullanici-adi/public_html/wp-config.php";
mysql_query("SET NAMES 'utf-8'");
mysql_query("SET CHARACTER SET utf-8");
mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'");
$my_query = new WP_Query('showposts=3');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
<ul><li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><font face="Tahoma"><?php the_title(); ?></font></a></li></ul>
<?php endwhile; ?>
Örneğin sonyazilar.php olarak kaydettiyseniz, bu dosyayı iframe ile de çekebilirsiniz, ya da include ile de nasıl isterseniz.

Mesela;

<?php
$adres = @file_get_contents("http://www.adres.com/sonyazilar.php");
echo $adres;
?>
Ya da iframe kodu ile de çekilebilir.

Alternatif olarak direk Rss adresinden de konular çekilebilir. Bu olmazsa Rss ile çekmenin mantığını da ekleyebilirim.

İkinci sorunuzu da aynı mantık ile yapabilirsiniz.

Öncelikle yukarıdaki gibi wp-config.php ye bağlanıyoruz ve içerisine query_post fonksiyonunu ekliyoruz.

<?php
include "/home/kullanici-adi/public_html/wp-config.php";
mysql_query("SET NAMES 'utf-8'");
mysql_query("SET CHARACTER SET utf-8");
mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'");
$my_query = new WP_Query('showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>

<ul>
<?php query_posts('showposts=5&orderby=date&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>


<?php endwhile; ?>
Kodlarda yer alan kullanıcı adı bölümünü, kendi sitenizin kullanıcı adı ile değiştirin.

Ayrıca yine "howposts=5&orderby=date&cat=1" bölümü nde ise,

howposts=5 > Kaç tane post çekeceğinizi ayarlayın
cat=1 > Hangi kategoriden çekecekseniz, o kategorinin ID numarası

En sonunda ise yine yukarıdaki gibi include ediyoruz konuların çıkmasını istediğiniz sayfaya.

<?php
$adres = @file_get_contents("http://www.adres.com/kategori-yazi.php");
echo $adres;
?>

Kolay gelsin.