You are viewing an old revision of this post, from May 4, 2012 @ 02:00:01. See below for differences between this version and the current revision.

Restrict a page/post to a specific logged in user

[php] if ( is_user_logged_in() && is_author('Alan') ) { show content here } else { show error message }[/php]

Revisions

  • May 4, 2012 @ 02:00:27 [Current Revision] by PeterLugg
  • May 4, 2012 @ 02:00:01 by PeterLugg
  • May 4, 2012 @ 01:59:43 by PeterLugg

Revision Differences

There are no differences between the May 4, 2012 @ 02:00:01 revision and the current revision. (Maybe only post meta information was changed.)

Tags: ,

No comments yet.

Leave a Reply