Johann Heyne
Forum Replies Created
-
OK, I found an issue and fixed it in version 1.1.3.
Thanks a lot!
JohannHello,
I´m sorry for the problems, but I cant replicate the issues on a standard WordPress 4.3 and ACF-4 or 5 installation.
Make sure you use the latest versions of all plugins and a PHP version greater than 5.3.
The Table Plugin does not make use of the WordPress Editor at the moment. So there is no reason, that this plugin breaks the editor.
So I need your help to find out, what happens in your Website environment. Please provide me a Login or describe the plugins and theme you use.
Thanks,
mail@johannheyne.deForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Exposing table data as Rest JSONTo encode ACF table data as JSON you can do following:
$table_data_array = get_field( 'your_table_field_name' ); $table_data_json = json_encode( $table_data_array );Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Exposing table data as Rest JSONHi, as long as WordPress has no build in REST-API you must enable the WordPress REST-API by the plugin https://wordpress.org/plugins/rest-api/.
After installing the plugin, you can get for example data of the page with post_id 2 like this:
yoursite.com/wp-json/wp/v2/pages/2/But the result does not include the meta/acf data of the page. To get the acf fields of a page, you have to register the fields in the API. Put the following code in your themes functions.php file
function api_page_get_acf_fields( $object, $field_name, $request ) { return get_fields( $object[ 'id' ] ); } add_action( 'rest_api_init', function() { register_api_field( 'page', // the post-type 'acf-fields', // the key in the JSON result array( 'get_callback' => 'api_page_get_acf_fields', ) ); });Now you can get the data of a page including the ACF fields via the REST-API. But notice, the WordPress REST-API is still in development.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Including to theme issueThere is a new version 1.1.2 that should fix the missing table on page template switch.
Thanks for posting the bug!Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Including to theme issueI´m going to examine the template bug. Thanks!
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Including to theme issueI´m sorry about that. But there is not support for including the plugin from inside a theme.
It is on my list.Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Icons MissingThere is an update to ACF Table Field version 1.1.1 that fixed the icon problems.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Icons MissingOK, since ACF Pro 5.2.8, the icons changed.
I´m working on it.
Thanks!Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Icons MissingI´m not sure what happens here. The icons are still images provided by a sprite in ACF. I can´t find any issues on a regular WordPress and ACF 4/5 installations. This must be some kind of side effect in yours specific use case. So I need more informations to get into it.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Issues making it workOK, yes, please send me the Login Data to mail@johannheyne.de.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Issues making it workSomething causes a problem on your installation. Do you have the latest version of WordPress and ACF 4 or 5? Is the PHP version 5.3 or higher?
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Issues making it workThe “Table” Field Type should be very on the bottom of the “Field Type” selection in the option group “Layout”. If not, something went wrong.
Insert the code in the template, where the ACF field / the ACF group belongs to, for posts in single.php and so on.
In the first line:
$table = get_field( 'your_table_field_name' );
you have to replace “your_table_field_name” with the name of you table field.Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Broken in 5.2.7?The new version 1.1 with the fix is available.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Broken in 5.2.7?A CSS class was removed by the update of the ACF Pro plugin version 5.2.7 the table plugin depends on. I will roll out a new version to fix that in a couple of hours.
Thanks!