• Resolved daniel851

    (@daniel851)


    Hello everyone,

    I am trying to make certain content visible to staff members only. This is what I have so far:

    <?php if ($current_user->ID == 1){ ?>
    <!--this is what I want only certain users to see-->
    <?php } ?>

    This works great if I want this information visible only to the admin. However, we have more than one staff member. Is there a way I can enter multiple user IDs? Or is there perhaps an ever better way to manipulate the code?

    Thanks.

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

The topic ‘Content available only to specified users’ is closed to new replies.