Limit Number of Blog Posts and Pagination
-
How do you limit number of blog posts shown in a page and add a pagination to navigate to the next blog posts.
I have 50 blog posts, I want to only show 5 blog post per page. At the bottom of the page I want to have something like
<back> [1][2][3][4][5] <next>
The blog I need help with is: (visible only to logged in users)
-
Hi,
How do you limit number of blog posts shown in a page
You may change the posts per page limit at My Site(s) > Settings > Writing > Content types. The number can be changed by simply clicking on the up/down arrows. When you’ve reached the desired number, save the change. See the Content Types section of the Writing Settings support page for relevant instructions and illustration.
Note that this setting not only affects the blog page, but also all archives pages such as year, month, and date archives, category and tag archives, author archives, etc.
Infinite scroll must also be disabled at Settings > Writing in order for posts per page setting to be applied. See Disabling Infinite Scroll.
At the bottom of the page I want to have something like
<back> [1][2][3][4][5] <next>
By default the posts per page setting produces an “Older Posts” button on the Cerauno theme. Clicking this button adds a number of older posts equal to the number set at the posts per page setting. So if your posts per page setting is 5, then each click of the “Older Posts” button will add five more posts, or however many posts remain if fewer than five remain unshown.
If the kind of pagination of the blog page described in your request is possible then it would likely require CSS customization. However, I don’t know if it’s is possible, so I’ll call for staff attention regarding that issue. Staff will respond here.
-
Hi,
If the kind of pagination of the blog page described in your request is possible then it would likely require CSS customization. However, I don’t know if it’s is possible, so I’ll call for staff attention regarding that issue. Staff will respond here.
It’s not: CSS can style the HTML that’s there, and sometimes add a little text, but this would require generating links as well as styles.
Want to try the built-in functionality as @musicdoc1 described, then see if there are any style adjustments you’d like to make? If there are still problems navigating, let us know.
- The topic ‘Limit Number of Blog Posts and Pagination’ is closed to new replies.