Title: [Plugin: WP-Table Reloaded] Code not valid
Last modified: August 19, 2016

---

# [Plugin: WP-Table Reloaded] Code not valid

 *  Resolved [soceuro](https://wordpress.org/support/users/soceuro/)
 * (@soceuro)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/)
 * On Tables put attribute “summary”
 * e.g.
    <table summary=”Description”>
 * [http://wordpress.org/extend/plugins/wp-table-reloaded/](http://wordpress.org/extend/plugins/wp-table-reloaded/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974184)
 * Hi,
 * the summary attribute is not a required attribute for tables, it is optional.
 * You can use it in WP-Table Reloaded, if you want, by using the `wp_table_reloaded_table_summary_arg`
   filter hook.
 * Regards,
    Tobias
 *  Thread Starter [soceuro](https://wordpress.org/support/users/soceuro/)
 * (@soceuro)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974206)
 * It is not a required attribute for tables, but receive a warning in W3C Validator.
   If I change the code every time I update the plugin, I need to make that change
   🙁
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974211)
 * Hi,
 * can you provide a link to your site? I suspect that there’s something else going
   on. I have never gotten such a warning in the validator.
 * Regards,
    Tobias
 *  Thread Starter [soceuro](https://wordpress.org/support/users/soceuro/)
 * (@soceuro)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974212)
 * [http://couzinatech.com/wp_table_reloaded.JPG](http://couzinatech.com/wp_table_reloaded.JPG)
 * This is what the HTML Validator (Firefox Extension) show,
    you are right the 
   W3C don’t show this error, but this attribute make tables accessibility.
 * [26.3. The summary element](http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html#sec_26.3.)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974214)
 * Hi,
 * ah, ok, thanks for the screenshot.
 * As mentioned, if you really want to add a summary attribute, you can do so using
   the filter hook.
 * For example, use
 *     ```
       function add_summary_attribute_to_tables( $summary, $table_id, $table ) {
         return esc_attr( $table['description'] );
       }
       add_filter( 'wp_table_reloaded_table_summary_arg', 'add_summary_attribute_to_tables', 10, 3 );
       ```
   
 * This will add the table description that you entered in the backend in the summary
   attribute.
    You can just paste this code into your theme’s “functions.php” to
   use it.
 * Best wishes,
    Tobias
 *  Thread Starter [soceuro](https://wordpress.org/support/users/soceuro/)
 * (@soceuro)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974216)
 * Tanks Tobias,
 * Best regards.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974217)
 * Hi,
 * no problem, you are very welcome!
 * Regards,
    Tobias
 *  Thread Starter [soceuro](https://wordpress.org/support/users/soceuro/)
 * (@soceuro)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974219)
 * I send you by mail the translation to pt-PT Portuguese of Portugal.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974221)
 * Hi,
 * very cool! I’ll check it out this evening and then add it to the plugin!
 * Thanks,
    Tobias

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

The topic ‘[Plugin: WP-Table Reloaded] Code not valid’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-code-not-valid/#post-1974221)
 * Status: resolved