As with regards to where it goes. Put it in your plugin code and put the sample_shortcode.php in the same directory. (Best to put your plugin in its own folder inside plugin folder.
Or you can put it in functions.php in your theme again make sure the file is in the same directory. Good luck and let me know if it worked for you.
Thanks.
This worked for me:
function sample_shortcode() {
ob_start();
include 'sample_shortcode.php';
$result = ob_get_contents();
ob_end_clean();
return $result;
}
add_shortcode('sample_shortcode', 'sample_shortcode');
Yes that works! Brilliant! Whens it due for official release?
Thanks so much!
Installed on latest build of 3.0. Upload feature doesnt seem to work. When I browse and select I have no option to upload. 🙁