I'm building a site for an online magazine, where you pay for each issue individually.
I have a membership level for each issue:
[level-visitor] for non-subscribers
[level-reader-issue-1] for people who buy issue 1
Issue 1 has it's own custom page template (issue1.php) as it's easier to write.
I want the first article of issue 1 to be visible to [level-visitor] who are then prompted to buy the whole thing. I have tried <!--more--> tags but WP won't let me use them on custom page templates.
So I am trying to use the shortcodes, to protect the content.
I want to wrap the magazine inside a shortcode [level-reader-issue-1] so it will only be visible to that level.
In my php template I have tried:
<?php echo do_shortcode("[level-reader-issue-1]"); ?>
then at the end:
<?php echo do_shortcode("[/level-reader-issue-1]"); ?>
This displays the "buy now" message (so it has been triggered), but it does not protect the content.
So in summary: how do you use shortcodes to protect content when the content is in a custom-page template?
Any help much appreciated!