Title: Short Code Issue
Last modified: August 21, 2016

---

# Short Code Issue

 *  Resolved [allanlud](https://wordpress.org/support/users/allanlud/)
 * (@allanlud)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/short-code-issue-2/)
 * 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/](http://wordpress.org/plugins/compact-wp-audio-player/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [allanlud](https://wordpress.org/support/users/allanlud/)
 * (@allanlud)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/short-code-issue-2/#post-4137207)
 * Ok just found the problem, I added ‘echo’ just after the opening php bracket 
   and it works now!

Viewing 1 replies (of 1 total)

The topic ‘Short Code Issue’ is closed to new replies.

 * ![](https://ps.w.org/compact-wp-audio-player/assets/icon-128x128.png?rev=994411)
 * [Compact WP Audio Player](https://wordpress.org/plugins/compact-wp-audio-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/compact-wp-audio-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/compact-wp-audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/compact-wp-audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/compact-wp-audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/compact-wp-audio-player/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [allanlud](https://wordpress.org/support/users/allanlud/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/short-code-issue-2/#post-4137207)
 * Status: resolved