Title: Nestled question
Last modified: August 22, 2016

---

# Nestled question

 *  [Jonas Lundman](https://wordpress.org/support/users/jonas-lundman/)
 * (@jonas-lundman)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/nestled-question/)
 * Hi
 * Is’n this div nestled wrong?
 *     ```
       // Create HTML and return it
       $output = '
       	<figure' . $attributes .'><div>' .
       		do_shortcode( $content ) .
       		'<figcaption class="wp-caption-text">' . $attr['caption'] . '</div></figcaption>' .
       	'</figure>
       ';
       ```
   
 * instead:
 *     ```
       // Create HTML and return it
       $output = '
       	<figure' . $attributes .'><div>' .
       		do_shortcode( $content ) .
       		'<figcaption class="wp-caption-text">' . $attr['caption'] . '</figcaption></div>' .
       	'</figure>
       ';
       ```
   
 * [https://wordpress.org/plugins/pco-media-handler/](https://wordpress.org/plugins/pco-media-handler/)

Viewing 1 replies (of 1 total)

 *  Anonymous User
 * (@anonymized-7837873)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/nestled-question/#post-5480160)
 * Hi. Sorry for the late replay. The div is nested fine. However, it would read
   better if the dix closed on the next line, in the same way it opens. I’ll improve
   that.
 * A lot of things have happened since I wrote this plugin and several of the things
   it does are now core in WordPress like using figure and figcaption. In version
   2.0 of the plugin this won’t be included.

Viewing 1 replies (of 1 total)

The topic ‘Nestled question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pco-media-handler_4c6971.svg)
 * [Pco Media Handler](https://wordpress.org/plugins/pco-media-handler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pco-media-handler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pco-media-handler/)
 * [Active Topics](https://wordpress.org/support/plugin/pco-media-handler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pco-media-handler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pco-media-handler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/nestled-question/#post-5480160)
 * Status: not resolved