• Hi all,

    For some reason, on my category page (using category.php template), not all posts for that category are loaded. I’m using the basic have_posts () : the_post() query, so no custom code in the template.

    The “blog pages show at most” setting in reading settings is set to 50, and yet only two posts are loaded while at least 4 post are in said category.

    What could be the cause of this behavior?

Viewing 7 replies - 1 through 7 (of 7 total)
  • what theme are you using?

    does the same happen if you temporarily switch to the default theme Twenty Fifteen and deactivate all plugins?

    do you have the same problem with date archives or tag archives?

    Thread Starter Stef Verbeeck

    (@twizted)

    Hi Michael,

    I just checked: it doesn’t happen whe I switch to the default twentyfifteen theme, so it must be an issue with my custom theme. However, I based that on the code of the twentythirteen category.php page.

    When I change to the author archives, It only displays one post in stead of all in my custom theme, alltough I didn’t change the code for that template (original twentythirteen file).

    Thread Starter Stef Verbeeck

    (@twizted)

    I pasted my relevant code from category.php in a pastebin.

    The page in question (Dutch) can be found here. Clicking on the categories in the sidebar to the right will show you the problem.

    what happens when you use your theme but deactivate all plugins?

    are you using any code in functions.php which could influence the number of posts per page in the archives? like filters or ‘pre_get_posts’ actions?

    Thread Starter Stef Verbeeck

    (@twizted)

    Hi Michael,

    I have deactivated all my plugins, no change whatsoever.

    Only thing added to my functions.php is the code to return the number of Twitter followers using the Twitter API – seems non-related.

    I’m guessing this is a theme specific issue then?

    what theme are you using?

    if it is not one of the supported themes from https://www.ads-software.com/themes/, have you contacted the theme’s developer for help with the problem?

    Thread Starter Stef Verbeeck

    (@twizted)

    I am using a custom theme: built by copying the twentythirteen folder and changing CSS and template files. Basics are the same, as is functions.php.

    Code for said category.php where the problem occurs is in the pastebin link above. It is sort of a copy-paste of the original template, just different layout to look more like my index.php code.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category page won't show all posts’ is closed to new replies.