Skip Navigation

[Résolu] I want third last post

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 5 années et 4 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Marqué : ,

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par vimalS Il y a 5 années et 4 mois.

Assisté par: Nigel.

Auteur
Publications
#1302847

I want third last post based on post date

#1302853

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: 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!