Home

Friday, July 1, 2011

In Wordpress Display content to registered users only

<?php global $user_login; get_currentuserinfo();
if ($user_login) :?>
<li><a href="your-uri-goes-here">Write a New Post</a></li>
<?php endif; ?>


This puts a link in to the write post page if the user is logged in. 

No comments:

Post a Comment

rathoddhirendra.blogspot.com-Google pagerank and Worth