Login not recognized
-
Hi.. I’m working on a blog for a client, and they want it so that users have to log-in to continue to read. I have this code in my home.php from my theme:
<backticks>
<?php if(is_user_logged_in()): ?>
<div class=”excerpt”>
<?php the_excerpt(); ?>
</div>
“>Continue Reading<?php else: ?>
<div class=”excerpt”>
<?php the_excerpt(); ?>
</div><b>Please log in to view the rest of this article</b>
</backticks>I’m not sure what I’m doing wrong, but whenever I login, it keeps telling me to login- Like it’s not recognizing that I just logged in to my account. Am I missing a line of code, or is there another way around this? Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Login not recognized’ is closed to new replies.