Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.