WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by TylerDigital v1.3.2

ACF: TablePress

ACF field type to select a TablePress table

ACF: TablePress

The facts

Rating
5★ from 4
Active installs
1k+
Price
Free
Last updated
14 Jul 2016
Added
May 2015
Requires WP
4.0
Tested up to
WP 4.5.33
Downloads
26,936

Our analysis

AI-assisted

ACF: TablePress is a WordPress plugin that serves as an extension for the Advanced Custom Fields (ACF) and TablePress plugins. It allows you to create a custom field type that lets you select a TablePress table from a dropdown menu. This plugin requires both ACF and TablePress to function, as it does not operate independently.

When you select a table using this custom field, it can return either the table ID or the full HTML of the table. This feature is useful for developers looking to integrate TablePress tables into their custom fields in WordPress sites.

Best for: This plugin is suitable for developers using ACF and TablePress who want to streamline table selection in custom fields.

What it does well

  • Integrates with Advanced Custom Fields and TablePress
  • Allows selection of TablePress tables via a dropdown menu
  • Can return table ID or full HTML output

Where it falls short

  • Requires both ACF and TablePress to function
  • Limited functionality on its own

Verdict

ACF: TablePress is a functional tool for those already using ACF and TablePress, but it lacks standalone capabilities.

From the developer

TylerDigital's own description of ACF: TablePress, lightly tidied.

This is an extension for the popular Advanced Custom Fields plugin and TablePress plugin. By itself, this plugin does NOTHING.

This add-on for Advanced Custom Fields creates a custom field type to select a TablePress table, providing a dropdown menu that lets you select from a list of available tables. The field can return the table ID for the table selected, or the full HTML of the table.

This plugin requires:

  • Advanced Custom Fields version 4+ or 5+
  • TablePress version 1.5+

Just to be sure there’s no confusion… This plugin does nothing unless ACF (Or ACF Pro) and TablePress are both active on your site

Follow this plugin on GitHub

Using the Field

This field can return the table ID for the table selected, or the full HTML of the table (the same output as the rendered shortcode).

When returning the table ID, either of the following code snippets will output your table (replacing ‘your_table_here’ with the field name you defined in your ACF Field Group settings).

<?php 
    $tablepress_id = get_field( 'your_field_here' );
    echo do_shortcode( '[table id="'.$tablepress_id.'"]' ); 
?>

or, to avoid using do_shortcode(), use

<?php
    $tablepress_id = get_field( 'your_field_here' );
    $args = array(
      'id' => $tablepress_id,
    );
    if ( function_exists( 'tablepress_print_table' ) ) {
      tablepress_print_table( $args );
    }
?>

To simply display the chosen table on your page, choose the HTML output option in your field settings, and insert into your php with

the_field( 'your_field_here' );

For a more detailed explanation, see our article, Setting up an ACF field for TablePress.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)