Title: Using outside WordPress?
Last modified: December 31, 2016

---

# Using outside WordPress?

 *  [invest0r7](https://wordpress.org/support/users/invest0r7/)
 * (@invest0r7)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/using-outside-wordpress/)
 * Hi, some of our site isn’t “inside WordPress” although we have WordPress functionality
   included everywhere via the wp-load.php file.
 * But social locker doesn’t seem to work when outside normal WordPress posts and
   pages. I’ve tried including the javascript and css files but still isn’t working.
 * Using this on the page:
 *     ```
       <?php ob_start(); ?>
   
       locked content
   
       <?php $to_lock = ob_get_contents(); ob_end_clean(); ?>
       <?php echo do_shortcode('[sociallocker id="33694"]'.$to_lock.'[/sociallocker]');?>
       ```
   
 * The php works, it’s just not functioning and showing the overlay with the buttons
   etc.

The topic ‘Using outside WordPress?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/social-locker_ffffff.svg)
 * [OnePress Social Locker](https://wordpress.org/plugins/social-locker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-locker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-locker/)
 * [Active Topics](https://wordpress.org/support/plugin/social-locker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-locker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-locker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [invest0r7](https://wordpress.org/support/users/invest0r7/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/using-outside-wordpress/)
 * Status: not resolved