• Resolved adam.rose

    (@adamrose-1)


    Hello – Is there a special way to use the following code to display information based on whether the user is logged-in or logged-out?

    <?php if (is_user_logged_in() ): ?>
     <?php else: ?>
    <?php endif ?>

    i tried replacing each <?php with [insert_php] and ?> with [/insert_php], but it doesn’t seem to be working.

    thanks!

    https://ww.wp.xz.cn/plugins/insert-php/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘is_user_logged_in()’ is closed to new replies.