I have a lot of video posts on my site and I'm looking to show the user a list of posts they've recently viewed. I'm guessing the best route is to just add the post id to an array in their usermeta when they visit a post but I'm wondering how can I do that and still be able to show them a chronological order of posts in which they viewed them. And also I wanna clip the number of posts in the array keeping it at 20 posts or so that the array isn't out of control. Any ideas?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
This plugin may fulfill your requirements. Usage
If you are interested in learning how develop these functionalities yourself, download the plugin and see the source files. WordPress is Open Source! Update:The above plugin did not worked. The following approach will help to get the recently viewed video ids.
|
||||
|