Hi Long,
thank you.
But this gives me
Fatal error: Uncaught Error: Class 'Arr' not found in /var/www/vhosts/server.de/xxx-xxx.com/member/wp-content/themes/blocksy-child/functions.php:144 Stack trace: #0 /var/www/vhosts/server.de/xxx-xxx.com/member/wp-content/themes/blocksy-child/functions.php(71): My_Dashboard->show_user_posts(Array) #1 /var/www/vhosts/server.de/xxx-xxx.com/member/wp-includes/shortcodes.php(356): My_Dashboard->shortcode(Array, '', 'custom_frontend...') #2 [internal function]: do_shortcode_tag(Array) #3 /var/www/vhosts/server.de/xxx-xxx.com/member/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(custom...', 'do_shortcode_ta...', '[custom_fronten...') #4 /var/www/vhosts/server.de/xxx-xxx.com/member/wp-includes/class-wp-hook.php(303): do_shortcode('[custom_fronten...') #5 /var/www/vhosts/server.de/pagebuilder-s in /var/www/vhosts/server.de/xxx-xxx.com/member/wp-content/themes/blocksy-child/functions.php on line 144
Line 140 - 150:
?>
<table class="mbfs-posts">
<tr>
<?php
$columns = Arr::from_csv( $atts['columns'] );
if ( in_array( 'title', $columns ) ) {
echo '<th>', esc_html( $atts['label_title'] ), '</th>';
}
if ( in_array( 'date', $columns ) ) {
echo '<th>', esc_html( $atts['label_date'] ), '</th>';
}
Kind regards,
Ole