How to modify shortcode attributes with data from current post
For anyone who might stumble upon this, I’ve found a solution: In my particular case, I’m using a single-[taxonomy].php template file, and was able to add the shortcode manually via the WordPress function do_shortcode() instead of modifying a shortcode within the post content. Here’s how I wrote it: <?php echo do_shortcode( ‘[mstw_schedule_table sched=”‘.$sports_slug.'” ]’ ); … Read more