Johann Heyne
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] [BUG] ACF field typeHowdy,
thank much for reporting this issue.
I fixed this in the development version you can download here:
https://downloads.wordpress.org/plugin/advanced-custom-fields-table-field.zipPlease give me a feedback, if that works for you.
Regards,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] PHP 8.x againDo you have installed the current plugin version 1.3.15?
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] PHP 8.x againHi,
I tested an ACF Flexible Content Layout and get_sub_field() successful without any errors on a fresh WordPress install. Can you please check your PHP Logfile. Maybe there are some errors which lead us to the problem.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Deleting a row/column won’t saveHi,
I could not replicate that issue.
PHP 8.0
WordPress 6.0.2
ACF Pro: 5.12.3
ACF Table Field: Version 1.3.15
Browser: Chrome 105.0.5195.102I just released the new version 1.3.15 that fixes an PHP 8.0 issue.
May the Browser, its version and the running OS helps me.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] How do I change the default row number?Hi,
sorry for the delay. The pagination of the table is a feature of the used theme, not of the table field plugin. So may ask the theme developer.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table Not Initializing in EditorHi, sorry, I could not replicate the issue.
I added a ACF fieldgroup for a custom Gutenberg block, added a group field with a table-field as subfield. The Gutenberg editor in WordPress 5.9.1 worked normaly and the table preview appears on loading the editor page and after changing the table.
Can you please give me more details…
– Browser and Version
– WordPress Version
– A screenshot of the issue in the editor
– A screenshot of the ACF group settings page
– Is there any javascript error in the console?Thanks!
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table Not Initializing in EditorHi, I try to fix it today and sorry for the delay. I didn’t find time to deal with it.
Cheers,
Johann- This reply was modified 4 years, 3 months ago by Johann Heyne.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table Not Initializing in EditorHi,
thanks for reporting me that issue. I will investigate and fix this as soon as possible.
Thanks,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Line break ignoredHi,
sorry for the delay. Line breaks are not supported by default. But you can add this, see…
https://wordpress.org/plugins/advanced-custom-fields-table-field/#how%20to%20handle%20line%20breaks%3FForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] PHP 8.0 BugHi,
Sorry for the issue. I was unable to replicate the
count()issue with PHP 8.
Anyway, I have includedis_countable()in a new plugin version 1.3.15 that is not yet public. You can download and install manually this version under the following link…
https://downloads.wordpress.org/plugin/advanced-custom-fields-table-field.1.3.15.zipDoes this version fix your issue?
Cheers,
Johann- This reply was modified 4 years, 5 months ago by Johann Heyne.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Export / Import TablesHi,
I unfortunately cant test a commercial plugin. I know for example, that plugins like “All-in-One WP Migration” and others works.
The table field stores the table data array as an serialized array in the database as usual in WordPress. If there is something like “Array,Array…” in the export file, the export process converted the table data string from the database into an array for some reason. You may check this in the export setup.
Did this hint help?
Cheers,
Johann- This reply was modified 4 years, 11 months ago by Johann Heyne.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table field not displaying on front endHi Joe,
the Divi`s dynamic content feature perhaps knows only the native ACF fields to render. This is also with page builders like Elementor.
You may can use a DIVI shortcode feature, to display the table. There is a description in the FAQ how to setup and use a table field shortcode.
https://wordpress.org/plugins/advanced-custom-fields-table-field/#how%20to%20use%20the%20table%20field%20in%20elementor%20page%20builder%3FI hope this helps,
Cheers,
JohannHi,
function shortcode_acf_tablefield( $atts ) { $a = shortcode_atts( array( 'table-class' => '', 'field-name' => false, 'post-id' => false, ), $atts ); $table = get_field( $a['field-name'], $a['post-id'] ); $return = ''; if ( $table ) { $return .= '<table class="' . $a['table-class'] . '" border="0">'; if ( ! empty( $table['caption'] ) ) { echo '<caption>' . $table['caption'] . '</caption>'; } if ( $table['header'] ) { $return .= '<thead>'; $return .= '<tr>'; foreach ( $table['header'] as $th ) { $return .= '<th scope="col">'; $return .= $th['c']; $return .= '</th>'; } $return .= '</tr>'; $return .= '</thead>'; } $return .= '<tbody>'; foreach ( $table['body'] as $tr ) { $return .= '<tr>'; foreach ( $tr as $key => $td) { // the "data-label" attribute required by your css was missing $return .= '<td data-label="' . $table['header'][ $key ]['c'] . '">'; $return .= $td['c']; $return .= '</td>'; } $return .= '</tr>'; } $return .= '</tbody>'; $return .= '</table>'; } return $return; }I hope you get the idea.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Hide Certain ColumnsHi,
hiding specific columns of a table by index/position can be done with the CSS :nth-child() pseudo class.
table td, table th { /* hide all cells first */ } table td:nth-child(1), table th:nth-child(1), table td:nth-child(2), table th:nth-child(2) { /* show cells of first and second column */ }Cheers,
JohannHi Luis,
I recreated the situation with the “ACF Frontend” plugin for Elementor and the table data was saved in the new post as expected. I have no glue, what is going on in your particular case.
What I did in detail:
– I created a ACF field-group for the posttype “post” with an table field.
– Then I installed “Elementor” and the Plugin “ACF Frontend”.
– Then I added a page and opened the Elementor editor for it.
– Then I added the Elementor widget “ACF Frontend Form” to the page, selected the ACF field-group and defined the action to create a new post.
– Then I testet the frontend form with the table field and the table data was available in the new created post.Did you something different?
Cheers,
Johann- This reply was modified 4 years, 11 months ago by Johann Heyne.