Created
January 9, 2018 13:02
-
-
Save mrfoxtalbot/93a6f8b5efcd384b1c303eaa8be28250 to your computer and use it in GitHub Desktop.
Mostrar un audio desde Advanced Custom Fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$urldelaudio = get_field('nombre_campo_audio'); | |
echo do_shortcode('[audio mp3="'.$urldelaudio.'"][/audio]'); | |
?> | |
// Tiene que haber una manera más elengate y sencilla, pero esto funciona. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment