A client of mine wishes to use the plugin Content Locker. The template in question doesn't have a content area the client can use and hence I need to use the do_shortcode function.
I know how to implement but not close?
<?php do_shortcode('[signinlocker id="506"]'); ?>
<div class="column">
<div class="columns resource_downloads">
<?php if ( have_rows('_downloads_group') ) : ?>
<?php while( have_rows('_downloads_group') ) : the_row(); ?>
<div class="column v-align-top">
<figure class="download__img outer-1by1">
<img class="inner-1by1" src="<?php echo wp_get_attachment_image_src( get_sub_field('_file_image'), 'download' )[0]; ?>" alt="<?php the_field('_file_image_alt'); ?>" width="150" height="150">
</figure>
<div class="resource_downloads-info stack__sm">
<h3><?php the_sub_field('_file_title'); ?></h3>
<p><?php the_sub_field('_file_description'); ?></p>
</div>
<div class="btn-wrap">
<a class="button primary" href="<?php the_sub_field('_file_download_button'); ?>" title="<?php the_sub_field('_file_download_button_title'); ?>"><?php the_sub_field('_file_download_button_label'); ?></a>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<?php do_shortcode('[/signinlocker]'); ?> // This is not correct?
I have too much "content" to use the echo do_shortcode( '[iscorrect]' . $text_to_be_wrapped_in_shortcode . '[/iscorrect]' );
example in the WordPress documentation.
How can I "wrap" the necessary code with [signinlocker id="506"]
shortcode.