Title: Short code not working
Last modified: August 22, 2016

---

# Short code not working

 *  Resolved [jayford](https://wordpress.org/support/users/jayford/)
 * (@jayford)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/short-code-not-working-28/)
 * Hi,
 * I tried to put this plugin in my header but it won’t work.
 * I used this code <?php echo do_shortcode(‘[woocs width=’50px’] ‘); ?> but it 
   returns an error.
 * Thank you so much please help

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/short-code-not-working-28/#post-5788408)
 * For a start, you are confusing the parser with quotes.
    Suggest that you try:`
   <?php echo do_shortcode("[woocs width='50px']"); ?>`
 * OR
    `<?php echo do_shortcode('[woocs width=\'50px\']'); ?>`
 *  Thread Starter [jayford](https://wordpress.org/support/users/jayford/)
 * (@jayford)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/short-code-not-working-28/#post-5788414)
 * Ross,
 * Thank you so much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jayford](https://wordpress.org/support/users/jayford/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/short-code-not-working-28/#post-5788414)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
