{"id":36099,"date":"2015-05-04T19:07:50","date_gmt":"2015-05-04T19:07:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-tablepress\/"},"modified":"2016-07-14T14:37:45","modified_gmt":"2016-07-14T14:37:45","slug":"acf-tablepress","status":"publish","type":"plugin","link":"https:\/\/so.wordpress.org\/plugins\/acf-tablepress\/","author":7733188,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.2","stable_tag":"1.3.2","tested":"4.5.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: TablePress","header_author":"Tyler Digital","header_description":"","assets_banners_color":"","last_updated":"2016-07-14 14:37:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/tylerdigital.com","rating":4.8,"author_block_rating":0,"active_installs":1000,"downloads":26105,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"4"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1153184","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1153184","resolution":"256x256","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.2.1","1.2.2","1.3","1.3.1","1.3.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2217,2289,2288,1240],"plugin_category":[59],"plugin_contributors":[79717,84151,79716],"plugin_business_model":[],"class_list":["post-36099","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-advanced-custom-fields","plugin_tags-table","plugin_tags-tablepress","plugin_tags-tables","plugin_category-utilities-and-tools","plugin_contributors-croixhaug","plugin_contributors-pwtyler","plugin_contributors-tylerdigital","plugin_committers-tylerdigital"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-tablepress\/assets\/icon-128x128.png?rev=1153184","icon_2x":"https:\/\/ps.w.org\/acf-tablepress\/assets\/icon-256x256.png?rev=1153184","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>This is an extension for the popular <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> plugin and <a href=\"https:\/\/wordpress.org\/plugins\/tablepress\/\">TablePress<\/a> plugin. By itself, this plugin does NOTHING.<\/strong><\/p>\n\n<p>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.<\/p>\n\n<p><strong>This plugin requires:<\/strong><\/p>\n\n<ul>\n<li>Advanced Custom Fields version 4+ or 5+<\/li>\n<li>TablePress version 1.5+<\/li>\n<\/ul>\n\n<p><em>Just to be sure there's no confusion...<\/em> <strong>This plugin does nothing unless <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">ACF<\/a> (Or <a href=\"http:\/\/www.advancedcustomfields.com\/pro\/\">ACF Pro<\/a>) and <a href=\"https:\/\/wordpress.org\/plugins\/tablepress\/\">TablePress<\/a> are both active on your site<\/strong><\/p>\n\n<p><strong>Follow this plugin on <a href=\"https:\/\/github.com\/tylerdigital\/acf-tablepress\">GitHub<\/a><\/strong><\/p>\n\n<h3>Using the Field<\/h3>\n\n<p>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).<\/p>\n\n<p>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).<\/p>\n\n<pre><code>&lt;?php \n    $tablepress_id = get_field( 'your_field_here' );\n    echo do_shortcode( '[table id=\"'.$tablepress_id.'\"]' ); \n?&gt;\n<\/code><\/pre>\n\n<p>or, to avoid using <code>do_shortcode()<\/code>, use<\/p>\n\n<pre><code>&lt;?php\n    $tablepress_id = get_field( 'your_field_here' );\n    $args = array(\n      'id' =&gt; $tablepress_id,\n    );\n    if ( function_exists( 'tablepress_print_table' ) ) {\n      tablepress_print_table( $args );\n    }\n?&gt;\n<\/code><\/pre>\n\n<p>To simply display the chosen table on your page, choose the HTML output option in your field settings, and insert into your php with<\/p>\n\n<pre><code>the_field( 'your_field_here' );\n<\/code><\/pre>\n\n<p>For a more detailed explanation, see our article, <a href=\"http:\/\/tylerdigital.com\/document\/setting-up-an-acf-field-for-tablepress\/\">Setting up an ACF field for TablePress<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the <code>acf-tablepress<\/code> folder into your plugins folder<\/li>\n<li>Activate the plugin via the Plugins admin page<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Fix: Fixed bug that prevented non-administrator users from inserting tables.<\/li>\n<li>Fix: Fixed bug that failed to display the table while logged out and using \"HTML Output\"<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Fix: Fixed undefined variable notices introduced in 1.3.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Update: Improved activation check: plugin now checks for Advanced Custom Fields as well as TablePress before activating.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Update: Drop-down list sorts by table title instead of table ID.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix: bug intoducted in last update displaying wrong version number.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Update: Updated TGM-Plugin-Activation library to 2.5.2<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>New: Added i18n support<\/li>\n<li>New: Added Portuguese translations (pt_PT, pt_BR)<\/li>\n<li>Update: Changed text domain to match the plugin slug ('acf-tablepress')<\/li>\n<li>Update: Removed hard-coded settings in rendered tables<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"ACF field type to select a TablePress table","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36099"}],"author":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tylerdigital"}],"wp:attachment":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36099"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36099"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36099"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36099"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36099"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}