Skip Navigation

[Resolved] Loop and pagination don’t honor WordPress “Blog pages show at most:” setting

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to set how many results to display when using pagination?

Solution:
The default mode will display the number of posts from the Settings > Reading > "Blog pages show at most" setting.

In the pagination settings of a View you can set a specific number of results to display.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-pagination/

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by justinB-3 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#617192

I am trying to build a blog page that only displays three posts at a time. The "Blog pages show at most" setting is 3. I receive 10 posts per page.

You can see this at hidden link

The code used is:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="Loop item in New blog"]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
<div class="post-nav">

    <li class="newer">[wpv-pager-next-page]OLDER ARTICLES[/wpv-pager-next-page]
    <li class="older">[wpv-pager-prev-page]NEWER ARTICLES[/wpv-pager-prev-page]

</div>
[wpv-layout-end]

#617321

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-02-19 at 09.27.01.png

Hi Justin

This may be connected to your other post about pagination problems with the same page.

If you have added pagination to a View you can specify the number of items per page (which overrides the blog settings).

When I get credentials from you in the other ticket for the site I will check how you have this set up at the same time.

#618164

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Justin

I took a copy of your site and confirmed that the pagination settings for your "new blog" View are set to show 10 items per page, and changing that to 3 correctly showed just 3 items per page.

If you find different let me know.

#621812

We originally felt this issue may have been related to #617191. Turns out that's not the case. The new view pages correctly now, but still does not honor the number of posts on the Settings > Reading option page. Can we please resuscitate this topic?

#621814

On closer inspection, it turns out that the new view does honor the setting again. You can close this ticket. Thanks!