Aynısı değil ama mantık olarak bu kodlar üzerinden çalışarak istediğin sonuca ulaşabilirsin.
include "wp-config.php"; mysql_query("SET NAMES 'latin5'"); mysql_query("SET CHARACTER SET latin5"); mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'"); $my_query = new WP_Query('cat=1&showposts=20'); while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;?>
endwhile;?>
|
iconlar :
-
cat=1&showposts=20 "Cat" kategori id numarasını "showposts" gösterilecek konu sayısını belirtir