Content External to WordPress
-
I’m trying to use the following in a file located outside of the WordPress installation but that calls WordPress using: require(‘../../wp-blog-header.php’);
The page in question is mostly HTML, which I first put into $content and then use with the shortcode like this:
print do_shortcode(‘[pms-restrict subscription_plans=”1147″]’ . $content . ‘[/pms-restrict]’);
However, it looks like the PMS functions aren’t connecting with the login functions of WordPress this way, though I am able to see that the WordPress core is loading. Is there a way to make this work in this fashion, or is there a better way to control access to non-WordPress content connected to subscriptions?
(The website in particular that I’m working on is selling access to stand alone educational courses that are served via HTML5/Flash in folders outside the WordPress installation.)
- The topic ‘Content External to WordPress’ is closed to new replies.