Support » Plugin: Allow PHP in Posts and Pages » could someone help me with the syntax?

  • scarduner


    I’m not PHP savvy enough

    This code displays content only to users logged into a membership group. I want the top of the WP page to show to all then members see what’s secured in the PHP

    <?php if (sl_ismemberof(“GOLD”)){ ?>
    content to be displayed only for logged in members of GOLD
    <?php } ?>

    Not sure how to use the shortcodes

    Thanks for your help

  • The topic ‘could someone help me with the syntax?’ is closed to new replies.