Restricted does not work
-
Dear Support,
I am just considering whether to buy this plugin or not – I do have a trial for testing purpose (WP 5.4 + default template twenty twenty).
I found that the restricted shortcode does not work in template.
PHP file looks like this:
<?php
get_header();
echo do_shortcode(“[restricted level=’1′]”);
?>
<div class=”section”>
<?php
echo get_post_field(‘post_content’, $page->ID);
?>
</div>
<?php
echo do_shortcode(“[/restricted]”);
get_footer(); ?>And front-end shows the error message, but still shows the content and shows also the [/restricted] tag. It is in code like this:
<div class=”ewd-feup-error”>Sorry, your account isn’t the correct level to access this content.</div>
<div class=”section”>Content text visible</div>
” [/restricted] “Can you please assist?
Thank you
- The topic ‘Restricted does not work’ is closed to new replies.