Using PHP and shortcode at the same time (resolved)
-
I am adding shortcodes to my wordpress templates, and in the shortcode i would like the value to echo after the wordpress title:
<?php echo do_shortcode(‘[ti_audio name=”Value”]’); ?>
I wanted something that would function like:
<?php echo do_shortcode(‘[ti_audio name=”<?php the_title() ?>”]’); ?>How would I go about doing something like this? The original shortcode is:
[ti_audio name=”Name of Playlist”]And the Name of playlist, I want to be the exact same name as the title of the post. Is this possible?
I am using this plugin/these shortcodes:
http://tierra-innovation.com/wordpress-cms/2009/10/16/audio-playlist-manager/
The topic ‘Using PHP and shortcode at the same time (resolved)’ is closed to new replies.