Default Attributes in Shortcode Not Working July 16, 2022 by Tarik Billa Try: $atts = shortcode_atts( array( 'title' => 'My Default', 'year' => '1900' ), $atts );