Skip Navigation

[Resolved] I want third last post

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

Problem:
How to use a View to show the third latest post?

Solution:
Order your View results by post date, DESC (so that newest posts are returned first).

If the first result is the last post you can use skip 2 to make the first result the third-last post, and then the limit option to return only one result, so your View will display only the third-last result.

This support ticket is created 5 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
- 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 2 replies, has 2 voices.

Last updated by vimalS 5 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1302847

I want third last post based on post date

#1302853

Nigel
Supporter

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

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

Order your View results by post date. I'm not sure from your question what "last" means, i.e. oldest or newest, but the direction should either one of these depending on what you mean so that the first result of the View should be the "last" post.

If the first result is the last post you can use skip 2 to make the first result the third-last post, and then the limit option to return only one result, so your View will display only the third-last result.

#1302857

My issue is resolved now. Thank you!