Title: [caption] &#039;s Yet again
Last modified: August 24, 2016

---

# [caption] 's Yet again

 *  Resolved [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/caption-s-yet-again/)
 * Ok, I’m trying to write a plugin and I’m confused. I’ve read through the Codex
   and got even more confused. And other forums made it worse. Here’s my problem.
 * I have $content. Which may or may not have a [caption] shortcode in it, as inserted
   by the TinyMCE when placing media. As long as I put that $content into a TinyMCE,
   I see the captions formatted properly. When I try to display that $content in
   say a table, the [caption] isn’t converted to HTML
 * Do I need a filter, a hook, a new shortcode… I dunno. I’m using a boilerplate
   to create this plugin so do I add this filter, hook, whatever, and it’s accompanying
   function into the ‘construct’ method or does it go into my menu?
 * Do I need an apply_filter on the $content? If so, where do I put that???
 * All I want is for the images to have their normal captions. I wouldn’t have thot
   it this difficult and confusing.

Viewing 1 replies (of 1 total)

 *  Thread Starter [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/caption-s-yet-again/#post-6098041)
 * HAH! Finally found it, buried…
 * do_shortcode($content)

Viewing 1 replies (of 1 total)

The topic ‘[caption] 's Yet again’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/caption-s-yet-again/#post-6098041)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
