Created
September 20, 2018 04:33
-
-
Save sunilw/3ddc3038892a1257290f6bb5479f94a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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