Title: Reading/viewing posts
Last modified: August 30, 2016

---

# Reading/viewing posts

 *  Resolved [bbuser10](https://wordpress.org/support/users/bbuser10/)
 * (@bbuser10)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/)
 * How can reading or viewing posts be recorded by aryo-activity-log? For example,
   which registered user viewed certain page?
 * [https://wordpress.org/plugins/aryo-activity-log/](https://wordpress.org/plugins/aryo-activity-log/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482650)
 * If you want to add your custom record, you can use with the our API. For example
   you can see there: [https://github.com/KingYes/wordpress-aryo-activity-log/blob/master/hooks/class-aal-hook-posts.php#L40](https://github.com/KingYes/wordpress-aryo-activity-log/blob/master/hooks/class-aal-hook-posts.php#L40)
 *  Thread Starter [bbuser10](https://wordpress.org/support/users/bbuser10/)
 * (@bbuser10)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482670)
 * Do you know which hook would be the most appropriate in this case?
 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482672)
 * Hook to see page view? You can use with `init` and check if you in `is_single()`
   or `is_page()`..
 *  Thread Starter [bbuser10](https://wordpress.org/support/users/bbuser10/)
 * (@bbuser10)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482738)
 * Thanks for your help. It works also with wp as a hook.
 * My only problem remains that the post view record is stored in the database, 
   but it does not appear in the activity log in the dashboard. I guess this is 
   a similar problem to the one posted in another topic in this forum a month ago.
 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482745)
 * Can you print here your code?
 *  Thread Starter [bbuser10](https://wordpress.org/support/users/bbuser10/)
 * (@bbuser10)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482750)
 * This is the line from the database:
 * ‘4556’, ‘guest’, ‘read’, ‘WP’, ‘post’, ‘dev test’, ‘422’, ‘0’, ‘127.0.0.1’, ‘
   1440692748’
 * Would user_id be the problem?
 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482753)
 * Hmm.. Please show me your PHP code to store that.
 *  Thread Starter [bbuser10](https://wordpress.org/support/users/bbuser10/)
 * (@bbuser10)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482823)
 * I had wrong object_type, that was the reason for not showing the record in the
   dashboard, I guess. It works fine now. Thanks again for the help.
 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482824)
 * No problem 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Reading/viewing posts’ is closed to new replies.

 * ![](https://ps.w.org/aryo-activity-log/assets/icon-256x256.png?rev=1944199)
 * [Activity Log - Monitor & Record User Changes](https://wordpress.org/plugins/aryo-activity-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aryo-activity-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aryo-activity-log/)
 * [Active Topics](https://wordpress.org/support/plugin/aryo-activity-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aryo-activity-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aryo-activity-log/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/readingviewing-posts/#post-6482824)
 * Status: resolved