ACF Shortcode Variable shows error
-
Hi,
I’m using ACF to supply the url for the fileurl parameter of the shortcode. I have the filed set to return the file url and the player shows and the file plays when clicked, so all is working, but I get the following error:
Compact Audio Player Error! You must enter the mp3 file URL via the “fileurl” parameter in this shortcode. Please check the documentation and correct the mistake.
Here’s my code in the tmeplate:
<?php echo do_shortcode( '[sc_embed_player fileurl="'.get_sub_field('track_sample').'"]' ); ?>
The shortcode is pulling in the correct url, but still getting the error message.
Any insight appreciated.
The page I need help with: [log in to see the link]
- The topic ‘ACF Shortcode Variable shows error’ is closed to new replies.