Johann Heyne
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Template Repeater Field with TableHi,
the repeater field is a different field type than the table field. It seems, that the PHP template code to output the repeater data is not done right. The tables HTML is not valide. Please check, if your PHP code closes all table elements correctly. You can find help to repeater fields at https://www.advancedcustomfields.com/resources/repeater/
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] WP 5.1 and Classic EditorOK, that sounds not necessarily of an issue caused by the table field. But to be sure, please check the following:
1. Make sure, that the field group is assigned to post type “post”.
2. If that not helps, please try another new field group, assign that group to post type “post” without a table field. If that group appears on editing a post, try to add a table field to that new field group. If that field group disappears from editing a post, there must be an issue with the table field.Cheers,
Johann- This reply was modified 7 years, 3 months ago by Johann Heyne.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] WP 5.1 and Classic EditorIs the whole field group containing the table field missing in editing a post or only the table field itself? Is the field group with the table field assigned to post type “post” in the location rules of the field group? Are other fields of the same field group showing?
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] WP 5.1 and Classic EditorHi,
I did not quite understand what you meant with “entry editor”. Could you please describe me what is meant.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Custom CSSthanks a lot. Yes, my code was wrong, there is no ‘table-class’ in the fields data array but in the shortcode attributes. I fixed the shortcode example in the FAQ.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Header title to TDJust use the $table[‘header’] array again…
echo '<tr>'; foreach ( $table['header'] as $th ) { echo '<td>'; echo '<label>' . $th['c'] . '</label>'; echo '</td>'; } echo '</tr>';or get the header value by $key…
echo '<tr>'; foreach ( $tr as $key => $td ) { echo '<td>'; echo '<label>' . $table['header'][ $key ]['c'] . '</label>'; echo $td['c']; echo '</td>'; } echo '</tr>';Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] missing returnHi,
thanks for reporting that issue. That helps a lot.
Version 1.3.5 fixes that update_post_metadata issue.Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Use of update_field()Hi,
sorry for my delay. I added an FAQ “Updating a table using update_field()” that answers your question https://wordpress.org/plugins/advanced-custom-fields-table-field/#faq-header
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Custom html and cssI’m really late, sorry about that. You can take my code example and adapt and extend it as you like it. Add a CSS class to the table element
<table class="my-table">and target that class in your stylesheet to style that table, for example making the table half width….my-table { width: 50%; }.Cheers,
Johann- This reply was modified 7 years, 3 months ago by Johann Heyne.
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Custom CSSI’m sorry that I did not respond to this support request. But this does not directly affect the plugin, it’s more of a general question setting up a shortcode. I have updated the shortcode example according to your question.
@madebyakhil
In this forum we are not allowed to ask for an access to the code of others. The forum guidelines explains the reason. Thanks anyway for helping.Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table data empty after updateHi,
I’m sorry for the inconvenience. Yes, there was an issue while saving quotes in table cell content. This should be fixed in version 1.3.2. But the table content of the table you saved is gone. I´m sorry about that. I’ve adjusted my update test routine so hopefully it will not happen again.
Thanks for reporting me that issue. That helps me and others a lot.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Notice: Undefined index: use_captionThe new version 1.3.1 should fix that error.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Multiple headersOK, I´ve got it.
No, there is no way to set up a class or something else. I know, my plugin is very very basic. Thats why I´m developing a Pro version to solve a ton of such requests. But it is not ready yet because of some left challenges and finding time to do it.What you could do is filtering content, detecting keyword in the first field of a row to detect a header etc. Maybe lead [head] in the first cell of a header row, search for it in the foreach loop, provide header class to the row and remove [head] from the cells content. That is what I would do. It depends on who should us this stuff.
Cheers
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Multiple headersHi,
you can extend the PHP code, that generates the table html. In the foreach loop for body rows you can insert the table header row when ever you need it.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Notice: Undefined index: use_captionHi,
Sorry for the delay. The PHP error indicates, that you are using the table field plugin version 1.3.0 which introduces the caption option. This version is not released yet and is for testing purpose. However, I could not reproduce this error. The missing index ‘use_caption ‘ should be there by the default_value parameter of the function acf_render_field_setting(). Maybe, there is/was a bug in the ACF plugin or I miss something. Do you use the latest ACF plugin version and does the issue still exists?
Cheers
Johann