explode array within shortcode

Kind of confusing question, but I think you want:

[mp3-jplayer tracks="'.implode(', ', get_post_meta($post->ID, 'mp3', false)).'"]

Assuming you get a array of meta key values this will join the into a comma-separated string

Leave a Comment