Bunu bir deneyin
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<? include "wp-config.php"; ?>
<?php
function kisalt($str,$harf)
{
if(strlen($str) > $harf)
{
$a = substr($str,0,$harf)."...";
}
else
{
$a = $str;
}
return $a;
}
kisalt(get_archives('postbypost', '8', 'custom', '<li>', '</li>'),"15");
?>
sadece config ile bu get_archives fonksiyonunun çalıştırılabildiğinden emin misiniz ?
include "wp-blog-header.php";
daha doğru olmaz mı ?