• On Category pages, how can i add code that tells it specific posts to show if on page 2, 3, etc.

    In the code below, it says if “is_front_page”…. how can i add to this to also say “if page 2” and “if page 3”

    <?php
                            global $more;
                            $more = 0;
    						if ( is_front_page () ) $paged = get_query_var( 'page' );
                            $wp_query = new WP_Query('post_type=post&posts_per_page='.$pagination.'&cat='.$blog_ids.'&paged=' . $paged.'&offset=5');
                            if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();
                        ?>

    http://www.mogultheory.com/art

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show specific posts on Category page 2 without pagination using "if"’ is closed to new replies.