Johann Heyne
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Feature Request: Titles to rowsIn the HTML it should be like…
<tr> <th scope="row">Title of Row</th> <td>One</td> <td>Two</td> <td>Tree</td> </tr>In the Table field, there is no explicit column for that like the header, just use the first column. But I note it for future implementation.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Feature Request: Rich TextHi,
Yes, it’s already done, but I still have to implement other functionalities before I can publish it. It can take a while.
Cheers,
JohannHi,
the
[acf field="field_name"]shortcut return just the value of a field likeget_field(). So you can´t use it for field-types with structured data like table, repeater etc.Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table empty after edittingHi Jeroen,
I found the issue in the new plugin´s version code and put it right. Unfortunately I´m not sure now, if I´m allowed to post that temporarily plugin download link again. May I ask Jan?
Thanks!
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table empty after edittingI´m sorry Jan,
yes, now I understand this prohibition against asking for login access now.
Thanks for the important note!
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Colspan and rowspanHi, thanks for reminding me to come around with the Pro version. I´m working really hard on it. Especially colspan and rowspan are difficult to solve while editing a table because of dragging rows and cols around. But I´m on the way.
Thanks!
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] How to remove textareaHi Piotr, I´m sorry, but the blue tooltip textarea is the only way for editing cell content now. I´m working on a Pro version solving a lot of requests and more. But it still takes a little while.
Cheers,
JohannHi, Sorry, but I´m not clear about what you mean. Can you please explain it more in detail?
Thanks, Johann
Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Add table with repeaterYou can use as many table fields as you want, even in repeater- and flexible-content fields.
Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Can’t create new lines inside tableTo display natural line breaks at the editing tables in the admin area, add the following styles to the admin area.
.acf-table-header-cont, .acf-table-body-cont { white-space: pre-line; }One way to add these styles to the WordPress admin area is adding the following code to your functions.php file of the theme.
add_action('admin_head', 'acf_table_styles'); function acf_table_styles() { echo '<style> .acf-table-header-cont, .acf-table-body-cont { white-space: pre-line; } </style>'; }Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Can’t create new lines inside tableHi,
in addition to my basic code example on https://wordpress.org/plugins/advanced-custom-fields-table-field/, you can add the PHP
nl2br()function to the cell content to convert the native line breaks from the table cell editor into<br>tags.echo nl2br( $td['c'] );Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Table field not working in post pageHi, can you please describe the problem more specific?
Thanks,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] class for trYou can add a class to
<tr>on rendering the html of the table. May use another ACF field to provide a choice of different classes if you had that in mind. The table field user interface itself has no options for that until the Pro version is available next year.Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Where add this codes?Sorry for my delay,
the code example is for use in a template like page.php or post.php, not functions.php. You get the table data just like other ACF field´s with
$table_data = get_field( 'your_table_field name' );. Use my code example to render the table.Cheers,
JohannForum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] Feature Request: Copy/PasteHi Andy,
you are right, but. My general thinking about that topic is, that none of the content of more complex ACF fields are able to simply copy and paste or import and export. This seams to be a missing ACF core functionality or a topic for another ACF Add-on to solve in general across all fields types.
I will integrate export & import and may copy and paste in some way in the Pro version of the plugin I´m working on just right now.
Cheers,
Johann