access shortcode atts in template part September 7, 2022 by Tarik Billa Use a global and set the value to $atts.