Support » Fixing WordPress » How to Use Audio Shortcode in a Table ?!

  • Resolved Mike Hickcox

    (@mike-hickcox)


    I have a custom search that pulls several fields out of a database and displays them. This includes a link to the audio, like this:

    [audio src=”http://MySite.org/HA-mp3/’ . $row[‘AudioLink’] .'”]

    I’ve been trying several ways to make this display the standard audio player, but no luck.

    Is there any way to make the results of a search, appearing as a line in a table, trigger the audio player?

    If not, is there a player plugin I can make work from a search in a table?

    Thank you!

Viewing 1 replies (of 1 total)
  • Whew! Figured it out. It requires a do_shortcode element, like this:

    // Audio Player
    echo do_shortcode (‘<tr><td class=”label”>Listen:</td><td>[audio src=”http://soundtheology.org/HA-mp3/’ . $row[‘AudioLink’]

Viewing 1 replies (of 1 total)
  • The topic ‘How to Use Audio Shortcode in a Table ?!’ is closed to new replies.