Documentation
Configuration parameter reference

All versions of TablePress support the following basic configuration parameters, both in the “TablePress Table” block in the editor as well as when using the [table id=N /] Shortcode. The supported configuration parameters of the TablePress premium feature modules are shown below.

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
FreebasicidTable IDThe ID of the table to show (can be seen on the “All Tables” or the “Edit” screen).stringnone (required)
Freebasicalternating_row_colorsAlternating Row ColorsWhether the table shall get alternating row background or text colors (“zebra striping”).boolean (true or false)true
Freebasicrow_hoverRow Hover HighlightingWhether table rows shall be highlighted with a different background or text color, if the mouse hovers over them.boolean (true or false)true
Freebasictable_headTable HeaderHow many first rows shall be the table header. This value needs to be greater than 0 if any “Table Features for Site Visitors” shall be used.integer1
Freebasictable_footTable FooterHow many last rows shall be the table footer.integer0
Freebasicfirst_column_thFirst Column Table HeadWhether the cells in first column shall be marked as headers (HTML <th> tag) for their row.boolean (true or false)false
Freebasicprint_namePrint Table NameWhether the name of the table shall be printed above or below the table.boolean (true or false)false
Freebasicprint_name_positionTable Name PositionPosition for printing the table name.enum (above or below)above
Freebasicprint_descriptionPrint Table DescriptionWhether the description of the table shall be printed above or below the table.boolean (true or false)false
Freebasicprint_description_positionTable Description PositionPosition for printing the table description.enum (above or below)below
Freebasicextra_css_classesExtra CSS Classesstring"" (empty string)
Freebasicuse_datatablesEnable Table Features for Site VisitorsWhether the “Table Features for Site Visitors” shall be used with this table. This requires that the table has at least one “Table Header” row.boolean (true or false)true
Freebasicdatatables_custom_commandsCustom Commandsstring"" (empty string)
Freebasicdatatables_datetimeDate and Time Detection Formatsstring"" (empty string)
Freebasicdatatables_filterSearch/Filteringboolean (true or false)true
Freebasicdatatables_infoTable Infoboolean (true or false)true
Freebasicdatatables_lengthchangePagiation Length Changeboolean (true or false)true
Freebasicdatatables_localeVisitor Features Localestringcurrent site locale
Freebasicdatatables_paginatePaginationboolean (true or false)true
Freebasicdatatables_paginate_entriesPagination Rows to showinteger10
Freebasicdatatables_scrollxHorizontal Scrollingboolean (true or false)false
Freebasicdatatables_scrollyVertical Scrollingboolean false or stringfalse
Freebasicdatatables_sortSortingboolean (true or false)true
Freebasichide_columnsHide ColumnsAllows overwriting the column visibility settings.
hide_columns=2,5-8 will hide columns 2, 5, 6, 7, and 8, regardless of their visibility configuration on the “Edit” screen.
The parameter hide_columns=all will hide all columns at once.
show_columns takes precedence over hide_columns.
string"" (empty string)
Freebasichide_rowsHide RowsAllows overwriting the row visibility settings.
hide_rows=2,5-8 will hide rows 2, 5, 6, 7, and 8, regardless of their visibility configuration on the “Edit” screen.
The parameter hide_rows=all will hide all rows at once.
show_rows takes precedence over hide_rows.
string"" (empty string)
Freebasicshow_columnsShow ColumnsAllows overwriting the column visibility settings.
show_columns=2,5-8 will show columns 2, 5, 6, 7, and 8, regardless of their visibility configuration on the “Edit” screen.
The parameter show_columns=all will show all columns at once.
show_columns takes precedence over hide_columns.
string"" (empty string)
Freebasicshow_rowsShow RowsAllows overwriting the row visibility settings.
show_rows=2,5-8 will show rows 2, 5, 6, 7, and 8, regardless of their visibility configuration on the “Edit” screen.
The parameter show_rows=all will show all rows at once.
show_rows takes precedence over hide_rows.
string"" (empty string)
Freebasiccache_table_outputCache Table OutputWhether the generated table output HTML code should be cached for one day. This should be turned off for tables that have dynamic content in their cells, like other Shortcodes.boolean (true or false)true
Freebasicconvert_line_breaksConvert Line BreaksWhether line breaks in the content in the table cells should be converted to HTML <br> tags, which resemble line breaks in HTML code.boolean (true or false)true
Freebasicevaluate_formulasEvaluate FormulasWhether formulas in this table should be evaluated before the table is rendered.boolean (true or false)true
Freebasicshortcode_debugShortcode DebuggingPrints the current render configuration below the table, for debugging purposes.boolean (true or false)false
FreebasicborderBorderDeprecated and no longer recommended. Use CSS code instead.
This corresponds to the <table border="0"> attribute that is no longer part of the HTML5 spec.
boolean (true or false)false
FreebasiccellpaddingCell PaddingDeprecated and no longer recommended. Use CSS code instead.
This corresponds to the <table cellpadding="0"> attribute that is no longer part of the HTML5 spec.
boolean (true or false)false
FreebasiccellspacingCell SpacingDeprecated and no longer recommended. Use CSS code instead.
This corresponds to the <table cellspacing="0"> attribute that is no longer part of the HTML5 spec.
boolean (true or false)false
Freebasiccolumn_widthsColumn WidthsDeprecated and no longer recommended. Use CSS code instead.
A string with width value (in pixels or as a percentage) for each column, separated by the | (pipe) symbol.
Examples:
column_widths=40px|50px|30px|60px
column_widths=20%|60%|20%
string"" (empty string)
Freebasicblock_previewBlock PreviewThis is an internal setting that should not be used.boolean (true or false)false

In addition, the different features modules in the TablePress premium versions support these configuration parameters:

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
Advanced Loadingdatatables-advanced-loadingdatatables_advanced_loadingboolean (true or false)false
Advanced Loadingdatatables-advanced-loadingdatatables_advanced_loading_html_rowsinteger10
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_firstlastboolean (true or false)false
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_previousnextboolean (true or false)true
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_numbersboolean (true or false)true
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_inputboolean (true or false)false
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_input_pageofboolean (true or false)true
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_buttonsinteger7
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_boundarynumbersboolean (true or false)true
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_scrolltotopboolean (true or false)false
Advanced Pagination Settingsdatatables-paginationdatatables_pagination_scrolltotop_offsetinteger10
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearchboolean (true or false)false
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearch_columnstring1
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearch_alphabetenum (latin or greek)latin
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearch_numbersboolean (true or false)false
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearch_lettersboolean (true or false)true
Alphabet Searchdatatables-alphabetsearchdatatables_alphabetsearch_case_sensitiveboolean (true or false)false
Automatic Filterdatatables-auto-filterdatatables_auto_filterstring"" (empty string)
Automatic Filterdatatables-auto-filterdatatables_auto_filter_url_parameterstring"" (empty string)
Buttonsdatatables-buttonsdatatables_buttonsstring"" (empty string)
Cell Highlightingcell-highlightinghighlightCell Highlight termCells that contain this term will be highlighted. You can combine multiple highlight terms with an OR operator, e.g. term1||term2 or term1&&term2.string"" (empty string)
Cell Highlightingcell-highlightinghighlight_full_cell_matchFull cell matchingIf this is true, the full cell content has to match the highlight term.boolean (true or false)false
Cell Highlightingcell-highlightinghighlight_case_sensitiveCase-sensitive matchingIf this is true, the case sensitivity of the highlight term has to match the content in the cell.boolean (true or false)false
Cell Highlightingcell-highlightinghighlight_columnsHighlight columnsA comma-separated list of the columns which should be searched for the highlight terms, e.g. 1,3-5,7. By default, all columns will be searched.string"" (empty string) // "" equates to 'all'.
Cell Highlightingcell-highlightinghighlight_url_parameterCell Highlight URL parameterThis allows providing the Cell Highlight term in a URL parameter.string"" (empty string)
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgetsboolean (true or false)false
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgets_columnsstring"" (empty string)
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgets_exclude_columnsstring"" (empty string)
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgets_separatorstring"" (empty string)
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgets_max_selectionsstring"" (empty string)
Column Filter Dropdownsdatatables-columnfilterwidgetsdatatables_columnfilterwidgets_group_termsboolean (true or false)false
Column Ordercolumn-ordercolumn_orderenum (default, reverse, or manual)default
Column Ordercolumn-ordercolumn_order_manual_orderstring"" (empty string)
Custom Search Builderdatatables-searchbuilderdatatables_searchbuilderboolean (true or false)false
Fixed Columnsdatatables-fixedheader-fixedcolumnsdatatables_fixedcolumnsstring"" (empty string)
Fixed Columnsdatatables-fixedheader-fixedcolumnsdatatables_fixedcolumns_left_columnsinteger0
Fixed Columnsdatatables-fixedheader-fixedcolumnsdatatables_fixedcolumns_right_columnsinteger0
Fixed Columnsdatatables-fixedheader-fixedcolumnsdatatables_scrollx_buttonsboolean (true or false)false
Fixed Rowsdatatables-fixedheader-fixedcolumnsdatatables_fixedheaderstring"" (empty string)
Fixed Rowsdatatables-fixedheader-fixedcolumnsdatatables_fixedheader_offsettopinteger0
Fuzzy Searchdatatables-fuzzysearchdatatables_fuzzysearchboolean (true or false)false
Fuzzy Searchdatatables-fuzzysearchdatatables_fuzzysearch_thresholdfloat0.5
Fuzzy Searchdatatables-fuzzysearchdatatables_fuzzysearch_togglesmartboolean (true or false)true
Fuzzy Searchdatatables-fuzzysearchdatatables_fuzzysearch_rankcolumnstring"" (empty string)
Index Columndatatables-counter-columndatatables_counter_columnboolean (true or false)false
Individual Column Filteringdatatables-column-filterdatatables_column_filterstring"" (empty string)
Individual Column Filteringdatatables-column-filterdatatables_column_filter_positionenum (table_head or table_foot)table_head
Individual Column Filteringdatatables-column-filterdatatables_column_filter_columnsstring"" (empty string)
Inverted Filteringdatatables-inverted-filterdatatables_inverted_filterboolean (true or false)false
Responsive Tablesresponsive-tablesresponsivestring"" (empty string)
Responsive Tablesresponsive-tablesresponsive_breakpointenum (phone, tablet, desktop, or all)phone
Responsive Tablesresponsive-tablesresponsive_scroll_buttonsboolean (true or false)false
Row Filteringrow-filteringfilterstring"" (empty string)
Row Filteringrow-filteringfilter_full_cell_matchboolean (true or false)false
Row Filteringrow-filteringfilter_case_sensitiveboolean (true or false)false
Row Filteringrow-filteringfilter_columnsstring"" (empty string) // "" equates to 'all'.
Row Filteringrow-filteringfilter_inverseboolean (true or false)false
Row Filteringrow-filteringfilter_url_parameterstring"" (empty string)
Row Groupingdatatables-rowgroupdatatables_rowgroupboolean (true or false)false
Row Groupingdatatables-rowgroupdatatables_rowgroup_datasrcstring1
Row Highlightingrow-highlightingrow_highlightstring"" (empty string)
Row Highlightingrow-highlightingrow_highlight_full_cell_matchboolean (true or false)true
Row Highlightingrow-highlightingrow_highlight_case_sensitiveboolean (true or false)false
Row Highlightingrow-highlightingrow_highlight_columns // "" equates to 'all'.string"" (empty string)
Row Highlightingrow-highlightingrow_highlight_rows // "" equates to 'all'.string"" (empty string)
Row Highlightingrow-highlightingrow_highlight_url_parameterstring"" (empty string)
Row Orderrow-orderrow_orderenum (default, reverse, sort, or manual)default
Row Orderrow-orderrow_order_sort_columnstring"" (empty string)
Row Orderrow-orderrow_order_sort_directionenum (asc or desc)asc
Row Orderrow-orderrow_order_manual_orderstring"" (empty string)
Search Highlightingdatatables-searchhighlightdatatables_searchhighlightboolean (true or false)false
Search Panesdatatables-searchpanesdatatables_searchpanesboolean (true or false)false
Search Panesdatatables-searchpanesdatatables_searchpanes_columnsstring"" (empty string)
Server-side Processingdatatables-serverside-processingdatatables_serverside_processingboolean (true or false)false
Server-side Processingdatatables-serverside-processingdatatables_serverside_processing_cached_pagesinteger0
Server-side Processingdatatables-serverside-processingdatatables_serverside_processing_periodic_refreshinteger0
Server-side Processingdatatables-serverside-processingdatatables_serverside_processing_request_typeenum (GET or POST)GET
Server-side Processingdatatables-serverside-processingdatatables_serverside_processing_html_rowsThis is only a Shortcode parameter, but not part of the user interface. By default, the value of the datatables_paginate_entries value is used.string"" (empty string)
Table Layoutdatatables-layoutdatatables_layoutTable LayoutThis parameter allows changing the Table Layout, by returning an object in JSON notation, e.g. as datatables_layout='{...}'.
However, as Shortcode parameters can not contain [ or ] characters that denote arrays in JSON, setting a different layout is only possible if only one control element should be shown per feature position.
Due to the JSON requirement, the JSON object string must be wrapped in single quotes ' for WordPress to properly recognize the parameter.
Example: The configuration parameter datatables_layout='{"top":"search", "topStart":null, "topEnd":null, "bottomStart":"paging", "bottomEnd":null}' will move the "Search" field to the top center position and only keep the Pagination controls below the table.
For more details, see the DataTables documentation.
string"" (empty string)