Hocam aklıma gelen tek yöntem veritabanına bağlanıp post_name'leri çekmek oldu

buyrun yazayım ;

$wpconfig = file_get_contents("wp-config.php"); // wp-config.php yolu
<8>preg_match_all("@'(.*?)'@", $wpconfig, $v4_config);

$sunucu = $v4_config[1][7];
$veritabani_kullanici = $v4_config[1][3];
$veritabani_parola = $v4_config[1][5];
$veritabani_adi = $v4_config[1][1];
$baglan = mysqli_connect($sunucu,$veritabani_kullanici,$veritabani_parola,$veritabani_adi);
mysqli_set_charset($baglan, "utf8");

$v4_options = mysqli_query($baglan,"select * from wp_options where option_name = 'siteurl'");

while($v4_cek_op=mysqli_fetch_array($v4_options))
{
$site_adresi = $v4_cek_op["option_value"];
}


$v4_post = mysqli_query($baglan,"select * from wp_posts");

while($v4_cek=mysqli_fetch_array($v4_post))
{
echo $site_adresi.'/'.$v4_cek["post_name"].'
';
}
?>


Configi otomatik alıyor sitenin wordpress kurulu olan anadizinine yazilar.php diye ekle web üzerinden gir alt alta listeleyecek siteadresi.com/deneme-yazi şeklinde