Title: Multiple Custom Commands?
Last modified: May 24, 2018

---

# Multiple Custom Commands?

 *  Resolved [insightful](https://wordpress.org/support/users/insightful/)
 * (@insightful)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-custom-commands/)
 * Hello. I would like to apply multiple Custom Commands to a single table.
 * I would like to both apply the command
    “columnDefs”: [ { “type”: “date”, “targets”:[
   1 ] } ] to set the second column’s format to mm/dd/yyyy date, and I would like
   to apply the command “order”: [[ 1, ‘desc’ ]] so that the table sorts by default
   to descending date order.
 * Each of these commands work individually, but I cannot figure out how to apply
   them simultaneously. I have tried entering them into a text editor on sequential
   lines, but the line breaks do not transfer when I paste them into the “Custom
   Commands” field, and the table does not update properly.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-custom-commands%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-custom-commands/#post-10321511)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Just combine them with a comma `,` 🙂
 * Best wishes,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Multiple Custom Commands?’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [custom commands](https://wordpress.org/support/topic-tag/custom-commands/)
 * [date](https://wordpress.org/support/topic-tag/date/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-custom-commands/#post-10321511)
 * Status: resolved