Aku mencoba untuk memisahkan Blog aku dengan halaman utama dari blog dengan menggunakan Wp Query untuk memanggil posting aku dari kategori Blogs dengan perintah berikut :
<?php
$limit = 10;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat=50');
$wp_query->is_archive = true; $wp_query->is_home = false;
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content('Read more »»»'); ?>
<?php endwhile; ?>
<?php next_posts_link('Older Entries'); ?> //
<?php previous_posts_link('Newer Entries'); ?>
<?php endif; ?>
Namun ada masalah dengan link ke halaman berikutnya lalu aku coba perintah seperti dibawah ini :
<?php $recent = new WP_Query("cat=50&showposts=10"); while($recent->have_posts()) : $recent->the_post(); ?>
<?php the_content('Read more »»»'); ?>
<?php endwhile; ?>
<?php next_posts_link('Older Entries'); ?> //
<?php previous_posts_link('Newer Entries'); ?>
Tetapi tetap tidak bisa mendapatkan link kehalaman berikutnya oh iya aku menggunakan tempelate sendiri dengan nama category-50.php jadi terpisah dari index.php.