Theme not showing correct number of posts in archives
-
Okay, I’ve exhausted everything I know of to figure this out, but I’m using a child theme for my news website TruTower and until recently, it showed the correct number of posts (8) on the bottom of the home page and all the archive pages. Over the past few days (and nothing was changed as far as the code goes that I’m aware of), the number of posts is now limited to 2 per page despite the fact that I have kept the setting on “8”.
Strangely, the pages are still there, as if the posts are still showing and even the source code of the site is showing all 8 posts as listed on each page of the archives.
Stranger still, I can move to the parent theme and all the posts show up. Moving back to the child theme reverts it to only showing 2 posts.
All plugins have been deactivated. Cache (hosting and local) has been cleared multiple times. I’ve even moved the “archives” code from the parent theme to the child theme folder. Nothing. I’m at a loss trying to figure this out, and any help would be appreciated.
If any further information is needed, I’ll be happy to provide it. Thanks!
Update: Nevermind! I don’t know how it happened (rather though a plugin or what) but it turns out my CSS had been altered with the following:
.posts_layout {height:375px; overflow:hidden;}
Removing this solved the problem. Took a little bit of continuous digging and reading through lines of code but the problem is now solved.
- The topic ‘Theme not showing correct number of posts in archives’ is closed to new replies.