Skip Navigation

[Resolved] Display last 2 article in Archive Page

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

Problem:
Display last 2 article in Archive Page - last 2 items are missing.

Solution:
The issue was you set your pagination to display 10 results per page but actually you are using 3 column grid so to fill the gap I set the pagination to use 12 posts per page and now its displays the expected results.

Relevant Documentation:
=> https://toolset.com/course-lesson/creating-a-custom-archive-page/#add-pagination-to-the-archive

This support ticket is created 3 years, 11 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by manuelR-11 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1988711

Tell us what you are trying to do?
Is there any way to solve the problem of showing the last two articles at the bottom of the archive page with Toolset?

Thank you so much

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? This is the link in question hidden link

#1988859

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you only want to display last (latest) 2 posts on your post type archive page when it displayed first time?

If you can share more details what exactly you want to display and where, do you want to use custom search and pagination.

#1990147
Schermata 2021-03-17 alle 08.59.08.jpg

ok i specify better what i want to solve

in this page hidden link archive I want to show all the articles just as it is but as you can see (screen attached) at the end of the page the last two articles inserts them in page 2.

I would like to solve this problem showing all the articles and not leaving the last two elements of the grid empty.

Is there a way?

#1990213

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure whats going on there and why those missing posts are added to 2nd page.

Can you please share admin access details so I can check whats going wrong.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. I have set the next reply to private which means only you and I have access to it.

#1992121

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

The issue was you set your pagination to display 10 results per page but actually you are using 3 column grid so to fill the gap I set the pagination to use 12 posts per page and now its displays the expected results.

Can you please confirm it works at your end as well.

#1992417

My issue is resolved now. Thank you!