Skip to:
Content
Pages
Categories
Search
Top
Bottom

my php program doesn’t work in widget


  • jappan
    Participant

    @jappan

    I’ve created a program that puts a login button for non-logged-in users and shows a profile image, name, and logout button for logged-in users, but php doesn’t recognize it.
    What am I doing wrong?
    teach me please.

    [This is my program]

    <?php if ( is_user_logged_in() ) : ?>
    <?php global $user_identity; echo $user_identity; ?>
    <?php bp_loggedin_user_avatar( ‘type=thumb&width=40&height=40’ ); ?>
    “>logout
    <?php else : ?>
    /wp-login.php”>login
    <?php endif; ?>

  • You must be logged in to reply to this topic.
Skip to toolbar