Can a shortcode included in post content add styles to the ?
hook the_posts and inspect each post to see if your shortcode is present, you can use wp_enqueue_style at that point if it is. maybe a bit of regex to check for the presence of the shortcode is the way to go, unfortunately i’m not very good with regex! function wpse27772_has_shortcode($posts) { if ( empty($posts) ) … Read more