WordPress.org

Ready to get started?Download WordPress

Forums

Compact WP Audio Player
[resolved] Short Code Issue (2 posts)

  1. allanlud
    Member
    Posted 11 months ago #

    Hi, I'm having a problem getting the shortcode to work in the header.php file.

    It works fine when adding it to a page or post in the WP dashboard, but using the code supplied on the tipsandtricks-hq site (<?php do_shortcode('[sc_embed_player fileurl="URL OF THE MP3 FILE"]'); ?>) nothing seems to happen, no error message etc...

    Any ideas?

    Thanks.
    Al.

    http://wordpress.org/plugins/compact-wp-audio-player/

  2. allanlud
    Member
    Posted 11 months ago #

    Ok just found the problem, I added 'echo' just after the opening php bracket and it works now!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags