//Allow shortcodes in widgets add_filter ('widget_text', 'do_shortcode'); function year_shortcode () { $year = date_i18n ('Y'); return $year; } add_shortcode ('year', 'year_shortcode');
Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/josiahb.sg-host.com/public_html/wp-content/themes/Divi-child/functions.php:1) in /home/customer/www/josiahb.sg-host.com/public_html/wp-includes/pluggable.php on line 1421