Support » Fixing WordPress » Audio Player On My Front Page

  • Andrew

    (@ndrwglrzayahoocom)


    I’d like to play an audio file on my main page but the problem is that the media player only loads with shortcode. Is there a way to load the shortcode in this way:

    ?php
    Shortcode src="?php"
    ?php

    Because I need to use a get attachment url to add the attachment to the player which only loads in the template via shortcode.

    Is there any way to use the get_attachment_url function inside of the [do_shortcode inside the parent php tag]?

    Thank you,

    Andrew

  • The topic ‘Audio Player On My Front Page’ is closed to new replies.