Skip Navigation

[Resolved] You Recently Visited view

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

Problem:
How to display post view count

Solution:
You can use plugin like as given under to display recently posts views count:
=> https://wordpress.org/plugins/posts-viewed-recently/#description

Relevant Documentation:

This support ticket is created 6 years, 2 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 4 replies, has 3 voices.

Last updated by Akhil 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1113422

Hi team.

i would like to slider base on the users recently visited post .

Pls guide how to achieve this pls. The cpt have to be able to auto detect , so that i can re-use the view.

Thank You.

#1113554

Toolset can help you to display those posts and create the slider easily:
https://toolset.com/documentation/user-guides/creating-sliders-with-types-and-views/

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.

#1113636

Thank you Beda on the reminder on GDPR . i have checked before GDPR is not applicable for my portal.

However this plugins seems interesting .https://wordpress.org/plugins/posts-viewed-recently/#description

#1114105

Minesh
Supporter

Languages: English (English )

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

Yes - you can use any third party plugin to full fill your requirement or add custom code as required.

#1114110

My issue is resolved now. Thank you!