WordPress.org

Ready to get started?Download WordPress

Forums

still shows 'Register' and 'Login' after I'm logged in (8 posts)

  1. donzacharias
    Member
    Posted 7 years ago #

    Hi, here's my site: http://sacrag.com

    I've got the wp_register and wp_loginout in my footer template, and 'Anyone can register' checked in Options>General. But it's still showing 'Register' and 'Login' and not tracking your login to the Comments form. Any clue why that would happen? I thought it might be caching but I cleared caches and switched browsers and it's still doing it. Thanks!!

  2. vkaryl
    Member
    Posted 7 years ago #

    Are you seeing this if you're logged in as admin? If so, you maybe need to check your cookie settings in browsers....

  3. donzacharias
    Member
    Posted 7 years ago #

    Yeah it's still showing those links even though I justed deleted caches and Logged in again as admin. Anything I could be doing wrong in the Options?

  4. anabelle
    Member
    Posted 7 years ago #

    If you have the login and register links in the theme, they will always show up.

    If they are written as static html fo course, but i dunno if this is the case, i cant understand the problem.

  5. donzacharias
    Member
    Posted 7 years ago #

    This is the code in my Footer template:
    <?php wp_register(' | ',' | '); ?><?php wp_loginout(); ?>

  6. donzacharias
    Member
    Posted 7 years ago #

    This is the code in my Footer template:
    <?php wp_register(' | ',' | '); ?><?php wp_loginout(); ?>

    It is still showing "Register | Login" even after I'm logged in. Also the Comment form is still showing when I log in (supposed to show "Logged in as..." correct?)

  7. donzacharias
    Member
    Posted 7 years ago #

    Okay, to add a wrinkle to this problem...

    WordPress does appear to know that a user is logged in, it just doesn't show the alternate comment form ("Logged in as..."). The result is that no matter what you put in the Name field, the comment gets posted to your user name. Any ideas? is this
    <?php if ( $user_ID ) : ?>
    somehow returning false?

  8. donzacharias
    Member
    Posted 6 years ago #

    Okay I was never able to get this figured out, but now I have a follow-up question: My site is at sacrag.com, but (for some reason I can't remember) WordPress is installed at wp.sacrag.com. Could that cause the problem I described above? On other sites where I have WP installed on the same domain as the content is viewed on (like bluemag.com), it seems to work properly. So I think that's the answer.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags