Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created September 20, 2018 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunilw/3ddc3038892a1257290f6bb5479f94a2 to your computer and use it in GitHub Desktop.
Save sunilw/3ddc3038892a1257290f6bb5479f94a2 to your computer and use it in GitHub Desktop.
function gloria_publish_video_gallery() {
ob_start() ;
// $test_string = '<h1>Got To Test String</h1>' ;
// echo $test_string ;
$test_string = include (get_stylesheet_directory() . '/inc/buzz-slideshow-videos-gallery-template.php');
// echo "<h1>the other test string</h2>" ;
echo $test_string ;
return ob_get_clean() ;
}
add_shortcode( 'gloria_video_gallery', 'gloria_publish_video_gallery' );
// included template:
<?php
return '<h1>Testing output from shortcode</h1>' ;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment