• I’ve succeded removing the unwanted categories from my index file, category id 9 and 15 as shown below,
    <?php get_header(); ?>
    <div id=”content”>
    <?php
    $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(“cat=-9,-15&paged=$page&posts_per_page=4”); ?>

    <?php while (have_posts()) : the_post(); ?>

    Now, My problem is , the first page starts from the old (first post not the latest one ) post not the latest post!
    I want it to display the latest post ignoring the category id 9 and 15.

    Any ideas!!!

  • The topic ‘Removing unwanted category from index.php displays the old post first!’ is closed to new replies.