• I’m trying with

    if(is_post_type_archive(‘gamepress_reviews‘)){
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts( array(
    ‘post_type’ => array(
    ‘post’,
    $include_reviews
    ),
    ‘posts_per_page’ => XXXXX,
    ‘paged’ => $paged )
    );
    }

    but it doesn’t work.

    How to do it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author alex27

    (@alex27)

    Where did you put this code? In which file? Game reviews and videos archives have both separate templates – archive-gamepress_reviews.php and archive-gamepress_video.php and this is where you should be making changes.

    Thread Starter bettarinho

    (@bettarinho)

    I put this code in index.php.

    I will try to make changes in the files you have mentioned.
    Thanks a lot

    Thread Starter bettarinho

    (@bettarinho)

    I tried replacing

    while ( have_posts() ) : the_post();

    with

    $args = array( ‘post_type’ => ‘gamepress_video’, ‘posts_per_page’ => XXX );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
    ….

    in archive-gamepress_video.php

    But it doesn’t work.
    It looks like every change I make in this file do not affect the layout.
    Any idea?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display a different number of posts in reviews and videos archive?’ is closed to new replies.