Published by Mijingo

tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Show Entries from Logged-in User

  • Posted by Ryan Irelan
  • May 28, 2009

If you ever need to show the entries from the currently logged-in user, it’s easiest to use the CURRENT_USER global variable than any other method.

{exp:weblog:entries weblog="foo" username="CURRENT_USER" limit="10"}
...
{/exp:weblog:entries} 

Alternately, if you don’t want to show entries from the logged in user, you can use NOT_CURRENT_USER.