i want my posts to be shown after logging in to the blog!
how can i do that?
please help me
and thanks in advance!
i want my posts to be shown after logging in to the blog!
how can i do that?
please help me
and thanks in advance!
You could just wrap the entire loop in a condition. Like:
<?php
if ( is_user_logged_in() ): {
// Here goes the loop
}
else: echo('You have to login to see the content!');
endif;
?>
Just put the loop of your index instead of the comment "//here goes the loop"
Hope that helps
This topic has been closed to new replies.