This support ticket is created hace 6 años, 2 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Since Toolset Views offers a Query Filter section you can show only posts that have a certain value set, or author, or date, or else.
However, Toolset does not provide a method to count or intercept the latest visited posts, and I would suggest a careful review of this process because it will conflict with the GDPR rules for websites/visitors of Europe (note, the website itself must not be necessarily from Europe)
You would be collecting sensitive data - and Toolset does not provide the means to do that, neither to later manage that data in a GDPR compliant approach.
However it will be able to use, process and output the data you feed it.
Hence you will need to find a method to (additional work, cannot be done with Toolset):
- get the current user (and some data of this user, for example, the id)
- store the posts (id for example) he/she visits in the database for example in a user field or similar
- create a logic that every then and when deletes old entries there (for example keep just the last 5)
- Use those Post ID's in the Custom User Field for the View, when you determine the View's Query.
There you will be able to determine to show posts by ID's and you could later pass your ID's in a Custom ShortCode to the View's ShortCode as a value for the Post ID attribute set with the Quer Filters
This additional work cannot be assisted by Toolset Support as it requires custom logic written in WordPress and PHP (Possibly JS) which does not relate to the Toolset API. https://toolset.com/toolset-support-policy/
Also, I would suggest reviewing this in light of GDPR and privacy compliances.