WordPress.org

Forums

Front-End Only Users
$User->Is_Logged_In() not working (7 posts)

  1. xguimera
    Member
    Posted 10 months ago #

    registration process is ok and registered users are visible in admin. But after login I always see the not logged content with next php code

    <?php $User = new FEUP_User();
    if ($User->Is_Logged_In()) {
    // logged content
    }
    else
    {
    // not logged content
    }?>

    Any ideas?

    https://wordpress.org/plugins/front-end-only-users/

  2. Rustaurius
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    Are [restricted][/restricted] tags working correctly for your install?

  3. xguimera
    Member
    Posted 10 months ago #

    I have a registration page and this code is used in another single page only with php code... I use this code to show / hide download button... I don't use [restricted][/restricted] as I only want to show / hide.

  4. contemplate
    Member
    Posted 10 months ago #

    Same here. When I add [edit-profile] to a page and then visit it while logged in it says: "You must be logged in to access this page."

  5. Rustaurius
    Member
    Plugin Author

    Posted 10 months ago #

    Ok, but do the tags work correctly elsewhere on your site? It helps for figuring out whether it's a problem registering a login or if it's a problem specifically with the FEUP class objects.

  6. contemplate
    Member
    Posted 10 months ago #

    Ok it looks like none of the tags work. They all say: Please log in to access this content.

    I used the following tags on the page:
    [restricted] Can you see me![/restricted]

    [user-search]

    [user-list]

    [edit-profile]

  7. Rustaurius
    Member
    Plugin Author

    Posted 10 months ago #

    On the options page, can you check to make sure that "Login Time" isn't blank or set to zero then?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.