Support » Plugin: Paid Memberships Pro » Plugin restricting only the_content not acf

  • Resolved webaddict


    I am really fedup with searching now. I have a custom template and i set level for page. When i am viewing page its showing restrict message only for the_content() function. My another ACF field div is coming. You can live page here:

    Please check below code:
    <div class=”video_page clearfix”>
    <div class=”large-8 medium-12 columns”>
    <?php if( get_field(‘video_type’) == ‘youtube’ ) { ?>
    <div class=”embed-container”><?php the_field(‘video’) ?></div>
    <?php } else { ?>
    <video width=”100%” controls>
    <source src=”<?php the_field(‘video_upload’) ?>” type=”video/mp4″>
    Your browser does not support HTML5 video.
    <?php } ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile;?>
    <?php do_action( ‘foundationpress_page_before_comments’ ); ?>
    <?php comments_template(); ?>
    <?php do_action( ‘foundationpress_page_after_comments’ ); ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin restricting only the_content not acf’ is closed to new replies.