How to Control the Number of Posts Displayed on Your Twenty Twelve Site
Content
Many users of the Twenty Twelve theme encounter a common question: how do I change how many blog posts, recent comments, or category listings appear on my pages? This is a fundamental aspect of managing your site's layout and user experience. Based on community discussions, this guide explains where these settings are controlled and how to adjust them.
The Core Issue: Global vs. Widget Settings
The confusion often arises because WordPress and the Twenty Twelve theme handle post counts in two different places:
- Global Blog Settings: This controls the main blog page, category archives, tag archives, and search results.
- Widget Settings: This controls auxiliary elements like the 'Recent Posts' or 'Recent Comments' widgets in your sidebar.
Changing one will not affect the other. For example, you might have your main blog pages set to show 10 posts, but your 'Recent Posts' widget might be separately configured to only show 5 links.
How to Change the Number of Main Posts per Page
To change the number of posts that appear on your main blog page, category pages, or other archive pages, you need to adjust a global WordPress setting.
- Log in to your WordPress dashboard.
- Navigate to Settings > Reading.
- Find the setting labeled 'Blog pages show at most'.
- Enter your desired number of posts in the field (e.g., 8 instead of the default 10).
- Click 'Save Changes' at the bottom of the page.
This change will immediately apply to the pagination on all your standard archive pages. If you find that pagination stops working after a certain page or redirects you, it is often due to a custom query in your theme files and is a separate issue.
How to Change Widget Limits
Elements like the 'Recent Posts' or 'Recent Comments' sidebar widgets have their own independent settings.
- In your WordPress dashboard, go to Appearance > Widgets.
- Find the widget you want to edit (e.g., 'Recent Posts') in your sidebar or other widget area.
- Click the down arrow on the widget to expand its settings.
- Look for a field labeled 'Number of posts to show' or similar.
- Change this number to your preferred value.
- Click 'Save' on the widget.
As confirmed by users in the community, this is the standard way to control the output of these specific widgets. The 'Recent Comments' widget can be modified in the exact same way.
When These Settings Might Not Be Enough
There are scenarios where you might need more granular control:
- Custom Post Types: The main reading setting often only applies to default posts. Displaying custom post types may require a different solution.
- Individual Category Pages: The global setting applies to all categories uniformly. To have one category show 5 posts and another show 15, you would likely need a custom-coded solution or a plugin.
- Front Page with Sticky Posts: If you use sticky posts, note that they are included in the post count. For example, if you have two sticky posts and a limit of 3 posts, only one non-sticky post will be displayed.
For these advanced use cases, custom development or searching for a dedicated plugin may be necessary.
Conclusion
Managing the number of posts displayed in Twenty Twelve is typically a straightforward process handled within the native WordPress Settings and Widgets menus. Before assuming a problem is a bug or requires code, always check these administrative areas first. For most users, the solution is just a few clicks away.
Related Support Threads Support
-
How to make my blog pages/categories to upload new blog posts like home pagehttps://wordpress.org/support/topic/how-to-make-my-blog-pagescategories-to-upload-new-blog-posts-like-home-page/
-
Post Page as a Bulletin Boardhttps://wordpress.org/support/topic/post-page-as-a-bulletin-board/
-
Recent Posts Limit?https://wordpress.org/support/topic/recent-posts-limit/
-
How do I get one of my sub pages to display more than 10 posts?https://wordpress.org/support/topic/how-do-i-get-one-of-my-sub-pages-to-display-more-than-10-posts-1/
-
More then one sticky post at the homepagehttps://wordpress.org/support/topic/more-then-one-sticky-post-at-the-homepage/
-
Child page shows in the main menuhttps://wordpress.org/support/topic/child-page-shows-in-the-main-menu/
-
Comment Count not Visible on Posts Homepage. to do with Permalink change?https://wordpress.org/support/topic/comment-count-not-visible-on-posts-homepage-to-do-with-permalink-change/
-
Plugin for maintaining textshttps://wordpress.org/support/topic/plugin-for-maintaining-texts/
-
Have posts appear under a different menuhttps://wordpress.org/support/topic/have-posts-appear-under-a-different-menu/
-
Limit Recent Comments in sidebar to those made on that page?https://wordpress.org/support/topic/limit-recent-comments-in-sidebar-to-those-made-on-that-page/
-
Custom Main / Top Navigation – Helphttps://wordpress.org/support/topic/custom-main-top-navigation-help/
-
Limit Number of Posts Displayed Per Pagehttps://wordpress.org/support/topic/limit-number-of-posts-displayed-per-page/
-
How do I add comment count on my Home pagehttps://wordpress.org/support/topic/how-do-i-add-comment-count-on-my-home-page/
-
Add a 'Home' page type function with Blog as the home packhttps://wordpress.org/support/topic/add-a-home-page-type-function-with-blog-as-the-home-pack/
-
Tag Pages and Duplicate Contenthttps://wordpress.org/support/topic/tag-pages-and-duplicate-content/
-
Custom Post Type Load More Posts Problemhttps://wordpress.org/support/topic/custom-post-type-load-more-posts-problem/
-
How to change pagination ?https://wordpress.org/support/topic/how-to-change-pagination-2/
-
How to filter posts by categoryhttps://wordpress.org/support/topic/how-to-filter-posts-by-category-1/
-
next previous page solutions?https://wordpress.org/support/topic/next-previous-page-solutions/
-
Pages showing up on blog pagehttps://wordpress.org/support/topic/pages-showing-up-on-blog-page/
-
Pagination stops working after page 2https://wordpress.org/support/topic/pagination-stops-working-after-page-2/
-
Show comments links even if comments are closed?https://wordpress.org/support/topic/show-comments-links-even-if-comments-are-closed/