• <?php
    $limit = get_option(‘posts_per_page’);
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(‘showposts=’ . $limit . ‘&paged=’ . $paged);
    $wp_query->is_archive = true;
    $wp_query->is_home = false;
    ?>
    in the setting, Reading, Blog pages show at most is 10 however it just show 4 post at most! and page does not able to scroll !
    is it a limitation because this theme is advertisement one, or something else and how can I handle this problem?
    Andrina Theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Where did you get that code from and is there any other code generating the posts?

    Thread Starter aliam

    (@aliam)

    I get it from Blog Page Page Template (blog.php) and I don’t think so

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This

    $limit = get_option('posts_per_page');

    Looks like it’s set by you somewhere in the Admin panel.

    Thread Starter aliam

    (@aliam)

    actually I don’t change anything in source code, and I am not able to find $limit = get_option('posts_per_page'); somewhere else. Beside, as I said before Blog pages show at most is 10 in the setting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘post limit’ is closed to new replies.