Title: [Plugin: PHP Snippets] [caption] tag being shown as code
Last modified: August 20, 2016

---

# [Plugin: PHP Snippets] [caption] tag being shown as code

 *  [lusitano](https://wordpress.org/support/users/lusitano/)
 * (@lusitano)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-php-snippets-caption-tag-being-shown-as-code/)
 * Hi,
 * first i would like to thank you for this amazing plugin!
 * Now the problem: I have a page where i would like to use some php snippets but
   i am experiencing some problems with other tags on the same page. Here my code
   that i have on that page:
 * [sort] is the tag for the php snippet.
 *     ```
       [sort]
       <div id="berater">
   
       [caption id="attachment_285" align="alignleft" width="100" caption="Beraterin XYZ"]<img class="size-thumbnail wp-image-285" title="Beraterin XYZ" src=".../2012/02/XYZ-150x150.jpg" alt="Beraterin XYZ" width="100" height="100" />[/caption]
       <h3>Beraterin XYZ (Durchwahl: 456)</h3>
       <small>Here is my Text</small>
   
       <img src=".../status.php?kennung=1234&abruf=image" alt="" />
   
       </div>
       [/sort]
       ```
   
 * The problem is that the [caption] part is shown as text on the frontend like 
   this:
 * [caption id="attachment_285" align="alignleft" width="100" caption="Beraterin
   Angela"][/caption]
 * So, its shown as text instead of being parsed as code. Do you have some advise
   what to do in this case?
 * I tried both parts (visual and HTML), it stays the same.
 * I thank you in advance for your help!
 * Regards
 * [http://wordpress.org/extend/plugins/php-snippets/](http://wordpress.org/extend/plugins/php-snippets/)

Viewing 1 replies (of 1 total)

 *  [tvardy](https://wordpress.org/support/users/tvardy/)
 * (@tvardy)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-php-snippets-caption-tag-being-shown-as-code/#post-2633636)
 * You need to use
 *     ```
       do_shortcode($content)
       ```
   
 * in your snippet

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: PHP Snippets] [caption] tag being shown as code’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-snippets.svg)
 * [PHP Snippets](https://wordpress.org/plugins/php-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/php-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [tvardy](https://wordpress.org/support/users/tvardy/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-php-snippets-caption-tag-being-shown-as-code/#post-2633636)
 * Status: not resolved