Saltar navegación

[Resuelto] I want third last post

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 5 meses. 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)

Etiquetado: ,

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por vimalS hace 5 años, 5 meses.

Asistido por: Nigel.

Autor
Mensajes
#1302847

I want third last post based on post date

#1302853

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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!