Skip to content

Instantly share code, notes, and snippets.

@bentedder
Created April 24, 2013 17:18
Show Gist options
  • Save bentedder/5453842 to your computer and use it in GitHub Desktop.
Save bentedder/5453842 to your computer and use it in GitHub Desktop.
A shortcode for using the Vertical Scroll plugin in your posts or pages
<?php
/*
Plugin Name: Vertical Scroll Shortcode
URI: http://www.bentedder.com
Description: Enhance the "Vertical Scroll" plugin with a shortcode to use in posts
Version: 1.0
Author: Ben Tedder
Author URI: http://www.bentedder.com
License: GPL2
*/
function bt_vertical_scroll() {
ob_start();
if (function_exists (vsrp)) {
vsrp();
}
return ob_get_clean();
}
add_shortcode('vertical_scroll', 'bt_vertical_scroll');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment