Skip Navigation

[Resolved] Only display certain items on one page with no paginator

This support ticket is created 6 years, 4 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ole Andreas Vekve 6 years, 4 months ago.

Assigned support staff: Beda.

Author
Posts
#419882

I am trying to only show 4 items on my front page with no paginator. I currently use WordPress Archive cell within a layout that is used on Home/Blog loop.

I have tried searching on forum and Google, but found nothing.

For what I have understand I have the possibility to have:

- No Pagination. This will display all posts.
- Pagination enabled. This shows a numbers of posts. E.g. 4. But the user is able to navigate to see the next 4.

So I am wondering how this could be solved.

#419886

Those paginations are probably not part of Views.

They are produced by your Theme most certainly.

In Views Archives you can disable pagination (will display all items).
This will override the "Item number" in Settings > Reading and therefore never produce a pagination.

Then you can choose to paginate, with either the WordPress Settings > Reading default settings, or, the custom amount of post.

This will in case there are more posts than displayed on the Current Page, produce the Theme's pagination.

IF the Theme is ONLY calling a minimal Loop, with no pagination links, you could control this with Views only, but, every theme in WordPress repository has pagination links, as otherwise they would not pass the requirements.

In your case, I would rather suggest a "classic" View, where you display 4 Items only, and then use a Static page where you insert the View (or assign your Layout)

#419892

Thank you,

Just to clearify. So you don't have any solutions to view the last 4 posts from this specific post type?

#419895

Those are WordPress archives.
You can display the last four posts, as illustrated, with the given fact that a Theme will present a pagination if it's a WordPress public theme.

The solution to show ONLY 4 posts is to create a View, limit the output to 4, order by post date and insert that View to your front-page, by making the page a static Front page.

The Post type can be specified in the View.

It is also possible in an Archive, if your Theme does not output pagination links there.

#419926

Thank you very much.

Solved.