Hi, qco. I’m in a similar situation, but it seems your knowledge is more advanced than mine, I’m a beginner.
Here is my path:
• I copied the entire code of [playlist] shortcode from media.php to a new document, just for creating a new shortcode.
• Then I added a couple of lines to remove the “wp_underscore_playlist_templates” and add my own template:
add_action( 'wp_playlist_scripts', 'my_playlist_script' );
function my_playlist_script()
{
remove_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
add_action( 'wp_footer', 'my_playlist_buytrack_template', 0 );
}
• As a result, both [playlist] and [my_playlist] uses the same template.
What I want is to use different templates, not to override the WP default’s.
Can you give me some guide on this? How do you point to custom template definitions?
Thanks!