• Resolved jackerj77

    (@jackerj77)


    Hi,

    I have a blog in which on home page all the latest posts are displaying.

    I want to restrict “whats on” category from displaying there.

    This is my code:

    `if ( get_query_var(‘paged’) ) { $paged = get_query_var(‘paged’);

    } elseif ( get_query_var(‘page’) ) { $paged = get_query_var(‘page’);

    } else { $paged = 1; }

    query_posts( array( ‘post_type’ => ‘post’, ‘paged’ => $paged ) );

    $num=0; if (have_posts()) : while (have_posts()) : the_post(); $num++;`

    I WANT TO SHOW ALL THE CATEGORIES IN LATEST POST, JUST 1 CATEGORY TO RESTRICT.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restrict "whats on" category to show from my home page’ is closed to new replies.