Title: [table-wrap] shortcode not working
Last modified: August 21, 2016

---

# [table-wrap] shortcode not working

 *  Resolved [reddo](https://wordpress.org/support/users/reddo/)
 * (@reddo)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/table-wrap-shortcode-not-working/)
 * I’ve tried using the standard markup, i.e.:
 *     ```
       [table-wrap bordered="true" striped="true"]
       <tr><td></td></tr>
       [/table-wrap]
       ```
   
 * With 1 row there was no error, but no table either, instead inspecting the element(
   plain text with tags stripped away) i saw:
 *     ```
       <?xml version="1.0"?>
       <tr class=" table table-bordered table-striped">
       <td>Imputernicit medic sef</td>
       <td>Dr. BOERIU Cristian – Marius</td>
       <td>(UPU-SMURD Mures)</td>
       </tr>
       ```
   
 * With more than 1 rows the following error:
 *     ```
       Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 7 in [...]/wp-content/plugins/bootstrap-3-shortcodes/bootstrap-shortcodes.php on line 1049
   
       Fatal error: Call to a member function setAttribute() on a non-object in [...]/wp-content/plugins/bootstrap-3-shortcodes/bootstrap-shortcodes.php on line 1050
       ```
   
 * With the following markup
 *     ```
       [table-wrap bordered="true" striped="true"]
       [tr][td][/td][/tr]
       [/table-wrap]
       ```
   
 * I got the following error:
 *     ```
       Warning: DOMDocument::loadXML(): Start tag expected, '<' not found in Entity, line: 2 in [...]/wp-content/plugins/bootstrap-3-shortcodes/bootstrap-shortcodes.php on line 1049
   
       Fatal error: Call to a member function setAttribute() on a non-object in [...]wp-content/plugins/bootstrap-3-shortcodes/bootstrap-shortcodes.php on line 1050
       ```
   
 * After I typed this all out, I noticed I should have actually added the whole 
   table markup, including the <table> tag. Maybe it’s just me, but this should 
   be more clear in the documentation, at least in the example markup.
 * IMHO there practically is no use for this shortcode if you have to type the whole
   table markup anyway.
 * [https://wordpress.org/plugins/bootstrap-3-shortcodes/](https://wordpress.org/plugins/bootstrap-3-shortcodes/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/table-wrap-shortcode-not-working/#post-4933484)
 * reddo,
    We’ve gone back and forth about keeping the table shortcodes in this 
   plugin because tables aren’t _really_ a feature Bootstrap, and ultimately settled
   on this best-and-worst-of-both-worlds approach. We’ll likely re-re-revisit the
   issue again in future releases.
 * We appreciate the feedback. You’re correct that the <table> tag is necessary,
   and that [table-wrap] doesn’t have a whole lot of use. We’ll take another pass
   at the documentation for [table-wrap] in a future release.

Viewing 1 replies (of 1 total)

The topic ‘[table-wrap] shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bootstrap-3-shortcodes_7f6b9f.svg)
 * [Bootstrap Shortcodes for WordPress](https://wordpress.org/plugins/bootstrap-3-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-3-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/table-wrap-shortcode-not-working/#post-4933484)
 * Status: resolved