Title: add short codes to wordpress?
Last modified: August 22, 2016

---

# add short codes to wordpress?

 *  [TOM](https://wordpress.org/support/users/sandbad/)
 * (@sandbad)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/)
 * i new to wordpress i want add short codes for wordpress page the codes is
    [geot
   country=”United States”] Content visible only to US users [/geot] i hope some
   one give details about how add these shortcodes?

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

 *  [techdesigns](https://wordpress.org/support/users/techdesigns/)
 * (@techdesigns)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5888907)
 * Probably best searching the plugin directory for a Geo restricting script – I
   imagine it would be easy to get around by using a proxy though.
 * Incidentally if you need help coding shortcodes into the template itself, rather
   than manually adding them to each post then [here’s a tutorial for you](http://www.techdesigns.co.uk/how-to-add-shortcodes-to-a-wordpress-theme/).
 *  Thread Starter [TOM](https://wordpress.org/support/users/sandbad/)
 * (@sandbad)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5889126)
 * thanks for replay
    i went to Template -single post to add <?php echo do_shortcode(“[
   SHORTCODE]”); ?> but i don’t know exactly where i can add this code in my single
   post?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5889127)
 * > exactly where i can add this code in my single post?
 * where do you want to have the text show?
    – before the post content, or after?
 * what theme are you using?
    does the theme have a **single.php** template?
 * or do you want to use the shortcode directly in the post’s content?
 * does the shortcode come from a plugin?
    if so, from which plugin exactly?
 *  Thread Starter [TOM](https://wordpress.org/support/users/sandbad/)
 * (@sandbad)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5889128)
 * – i want add before post
    – theme is -Osiris -does theme have single php template?
   yes shortcode come from GeoTargeting Lite plugin do you want to use the shortcode
   directly in the post’s content? i add it before to post content the all code 
   appear in public , i try to do in right way , so i appreciate your respond to
   me about how add it
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5889129)
 * try to add the code into single.php (ideally of a child theme) _before _this 
   line:
 *     ```
       <div class="post_info_wrap"><?php the_content(); ?> </div>
       ```
   
 * if you think it is a problem with the theme, please post in [https://wordpress.org/support/theme/osiris](https://wordpress.org/support/theme/osiris)
 * if you think it is a problem with the plugin, please post in
    [http://wordpress.org/support/plugin/geotargeting](http://wordpress.org/support/plugin/geotargeting)

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

The topic ‘add short codes to wordpress?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/add-short-codes-to-wordpress/#post-5889129)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
