Hide password protected dynamic content in templates via shortcode

I’m not sure you actually used the html inside php like you have in the bottom of the question, but do try as below. <?php if( echo do_shortcode(‘[passster password=”123456″]’); ): ?> <!–<hide content>–> <ul class=”TPlayerNv”> <?php echo $optplayer; ?> </ul> <div class=”TPlayerCn BgA”> <div class=”EcBgA” style=”background-color:#EEEEEE!important;”> <div class=”TPlayer”> <?php echo $player; ?> <span class=”AAIco-lightbulb_outline lgtbx-lnk”></span> … Read more