Title: Shortcode wont work!
Last modified: August 20, 2016

---

# Shortcode wont work!

 *  [artomal](https://wordpress.org/support/users/artomal/)
 * (@artomal)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/)
 * Hello,
 * I’ve tried to use shortcode but it doesnt work, I added those lines in my tempalte
   functions.php file
 *     ```
       add_shortcode('sayhello', 'sayhello');
   
       function sayhello(){
       	echo "Helloooooo!";
       }
       ```
   
 * I write in post HTML section tag [sayhello] but it wont work… Whats the problem?

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

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/#post-3118329)
 * Try:
 *     ```
       return "Helloooooo!";
       ```
   
 * [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
 *  Thread Starter [artomal](https://wordpress.org/support/users/artomal/)
 * (@artomal)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/#post-3118334)
 * still doesn’t work
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/#post-3118348)
 * What exactly doesn’t work? Is “Helloooooo!” displayed in the place where you 
   inserted [sayhello] in the post content? Or does it display [sayhello] without
   converting it?
 *  Thread Starter [artomal](https://wordpress.org/support/users/artomal/)
 * (@artomal)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/#post-3118359)
 * display [sayhello] without converting
 * _[ Not 10 minutes and you’re bumping already? Don’t do that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).
   If it’s really that urgent then consider [hiring someone](http://jobs.wordpress.net/).]_

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

The topic ‘Shortcode wont work!’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [artomal](https://wordpress.org/support/users/artomal/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/shortcode-wont-work/#post-3118359)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
