Title: Shortcode not working
Last modified: August 21, 2016

---

# Shortcode not working

 *  Resolved [Kirsti Norton](https://wordpress.org/support/users/kirstinorton/)
 * (@kirstinorton)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-34/)
 * I have installed and activated the plugin, and set the URL of the Custom Header
   Image on my specific page that is using a template. When I go to that template
   php file and try to add:
    <img “src=”<?php echo do_shortcode(“[image_url]”); ?
   >”>
 * The shortcode doesn’t get replaced the with image URL. Pretty sure I am using
   this incorrectly, not sure how to get the custom image to display on the page.
 * I put the:
    <?php if(function_exists(‘chi_display_header’)) { chi_display_header();}?
   > in my index.php after the get_header function
 * [http://wordpress.org/plugins/custom-header-images/](http://wordpress.org/plugins/custom-header-images/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Blackbam](https://wordpress.org/support/users/blackbam/)
 * (@blackbam)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/shortcode-not-working-34/#post-4122430)
 * Hello Kirsti, the shortcodes from the custom output function are not “real shortcodes”
   yet. They only work if used in the custom output function. But I think it is 
   a good idea to provide this for future versions.
 * The custom images will be displayed if you place the code correctly and of course
   you must have set image urls (otherwise you will not see anything).
 * Make also sure that your PHP-Code is still valid after placing the header images
   function call.
 * Please re-open, if this does not help.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-header-images.svg)
 * [Custom Header Images](https://wordpress.org/plugins/custom-header-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-header-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-header-images/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-header-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-header-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-header-images/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Blackbam](https://wordpress.org/support/users/blackbam/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/shortcode-not-working-34/#post-4122430)
 * Status: resolved