lituoklis13
Forum Replies Created
-
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Table is not showing up with ElementorThank you, works perfect!
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Table is not showing up with ElementorThanks for your answer, Johann. The table field is inside in a group field.
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Table is not showing up with ElementorIs the table preview on the elementor editing page? I did not see it in elementor editing page, just only the block with grey background, also as others blocks which are showing on frontend corectlly:
Ist the table field on a page or an option page or somewhere else? Table field is in custom post type page.
Is the correct table field name given in the shortcode? Yes, I double checked it.
Is the correct post-id given in the shortcode? Post ID is not given in shortcode.
Has the table more than one cell or at least one cell with content in it? Yes, I try multiple variations:This is the code that I put in functions.php:
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>'; $return .= $th['c']; $return .= '</th>'; } $return .= '</tr>'; $return .= '</thead>'; } $return .= '<tbody>'; foreach ( $table['body'] as $tr ) { $return .= '<tr>'; foreach ( $tr as $td ) { $return .= '<td>'; $return .= $td['c']; $return .= '</td>'; } $return .= '</tr>'; } $return .= '</tbody>'; $return .= '</table>'; } return $return; } add_shortcode( 'tablefield', 'shortcode_acf_tablefield' );
This is the shortcode that I put in Elementor shortcode element:
[tablefield field-name="techniniu_duomenu_lentele"]
And this is Advanced Custom Fields Table Field which I am using:
- This reply was modified 8 months, 3 weeks ago by lituoklis13.
- This reply was modified 8 months, 3 weeks ago by lituoklis13.
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Table is not showing up with ElementorI checked everything and I am sure that quotes are right, also the hook is in functions.php the exact as in your documentation.
Also I will try to use default theme but there is no luck.- This reply was modified 8 months, 3 weeks ago by lituoklis13.
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Table is not showing up with ElementorHey, Johann. Yes, I did excactly like in instructions. Maybe I can provide you login to my site and you would take a look?
Forum: Plugins
In reply to: [DPD Baltic Shipping] Price for Courier shipping method disapearedHi,
I’m only using WooCommerce Shipping – DPD baltics plugin.