WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to count the number of new post since the last visit of the user on my blog, is it possible?

Thanks to all for your help!

share|improve this question
What have you already tried. – kaiser Sep 12 '12 at 21:55
Hi! I tried get all the numbers of post, but only i need the last post. I guess define a cookie for this purpose. – rodboc Sep 13 '12 at 2:19
Please show us the code you tried. – kaiser Sep 13 '12 at 3:53
up vote 0 down vote accepted

i think it is possible to get what you want by

Store the last date time a user login as a user meta

Use the usermeta to get posts published after the date - time uring $wpdb

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.