Plugin restricting only the_content not acf
-
Hi,
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: http://www.bodylogichealth.co.uk/nutrition-2/video-title-2/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.
</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’ ); ?>
</div>
</div>
The topic ‘Plugin restricting only the_content not acf’ is closed to new replies.