Forums
(@gastrog)
13 years, 10 months ago
I’ve also tried this code:
<?php $prop_autore = get_the_author_meta('ID'); global $current_user; get_currentuserinfo(); if ($current_user->ID == $prop_autore) { ?>
Using ID instead of nick name but but no good news!
Any hint?
Hi, Silafu and thanks for your reply! Your code seems to work fine for the admin but not for the author. Even the author gets restricted access. Could there be some work around? I’m not php programmer (unfortunately) ??
Regards
p.s only the author or admin should have access to the page