I need to Show Recently Viewed Custom Posts to the visitor without plugin because my design is different. Can anyone advice me how to achieve this functionality. I'll do it.
Thanks
I need to Show Recently Viewed Custom Posts to the visitor without plugin because my design is different. Can anyone advice me how to achieve this functionality. I'll do it.
Thanks
Share Improve this question asked Jan 24, 2019 at 5:39 user147190user1471901 Answer
Reset to default 0you can achieve that by using cookies. just create a cookie on init function on single page and create a array inside cookie with time of the visit on the post. And then you can retrieve the posts according to your design.