Title: Code not working for &#039;grab my blog button code&#039;
Last modified: August 20, 2016

---

# Code not working for 'grab my blog button code'

 *  [americanightmare](https://wordpress.org/support/users/americanightmare/)
 * (@americanightmare)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/code-not-working-for-grab-my-blog-button-code/)
 * I want people to be able to see my image and then the static non working code
   below it that they can copy and paste to their site and it will link back to 
   me.
 * I used a text widget and here is the code. It just displays as code.
 * [div align=”center”][a href=”[http://www.malindaj.com/blog&#8221](http://www.malindaj.com/blog&#8221);
   target=”_blank”][img src=”[http://malindaj.com/blog/?attachment_id=701″%5D%5B/a%5D%5B/div%5D](http://malindaj.com/blog/?attachment_id=701″%5D%5B/a%5D%5B/div%5D)
 * [div align=”center”][form][textarea rows=”3″ cols=”19″ readonly=”readonly”][a
   href=”[http://malindaj.com/blog&#8221](http://malindaj.com/blog&#8221); target
   =”_blank”][img src=”[http://malindaj.com/blog/?attachment_id=701″%5D%5B/textarea%5D%5B/form%5D%5B/div%5D](http://malindaj.com/blog/?attachment_id=701″%5D%5B/textarea%5D%5B/form%5D%5B/div%5D)

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/code-not-working-for-grab-my-blog-button-code/#post-2420553)
 * you are using square brackets….. html doesn’t do that, is it intentional?
 *     ```
       <div align="center"><a href="http://www.malindaj.com/blog" target="_blank"><img src="http://malindaj.com/blog/?attachment_id=701"></a></div>
       ```
   
 * For instance……
 *  Thread Starter [americanightmare](https://wordpress.org/support/users/americanightmare/)
 * (@americanightmare)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/code-not-working-for-grab-my-blog-button-code/#post-2420776)
 * Oh thank you!!!! I just found this tutorial on how to do it and that is the syntax
   they used and it seemed to work for everyone else. Thank you, thank you, thank
   you!!!
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/code-not-working-for-grab-my-blog-button-code/#post-2420841)
 * square brackets in WP indicate shortcodes
 *     ```
       [shortcode]text[/shortcode]
       ```
   
 * or just
 *     ```
       [shortcode]
       ```
   
 * They have to be defined by your theme or plugin to be able to be used. Without
   being defnied somewhere, they don’t exist. Also, for forums, square brackets 
   indicate bb code, specialized tags allowed by some forum software.
 * In the WP world, shortcodes are only used in pages/posts.
 * In actual code, inside templates, or in sidebar widgets, code uses < and > type
   brackets.

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

The topic ‘Code not working for 'grab my blog button code'’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/code-not-working-for-grab-my-blog-button-code/#post-2420841)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
