I am using the Nivo Slider plugin for WordPress, but want to hard code the slider into my page and have it dynamically pull in the correct slider as the page and Nivo slider will share the same slug.
If my slider was called Flip Clock Print this is what works...
<?php echo do_shortcode('[nivoslider slug="flip-clock-print"]'); ?>
If I want the slug of the page, this is what works...
<?php echo $post->post_name; ?>
How do I combine the two together, because I guess this isn't right?
<?php echo do_shortcode('[nivoslider slug="$post->post_name;"]'); ?>