[wp-hackers] Selective CSS based on Shortcode?

Matthew Kettlewell ceo at kettlewell.net
Wed Jan 27 08:32:51 UTC 2010


I'm wanting to override CSS in posts that use a shortcode from my
plugin....

problem is that I'm not sure how to go about doing this...

I'm using add_shortcode() to check in the post contents for the shortcode,
but I'm needing to know if the shortcode is used when I'in in header.php.

I've tried setting meta_data in my function that is called from
add_shortcode(), but it's too late...

Is there a way to get the shortcode value before header.php is called?

Thanks
Matt

-- 
Matthew Kettlewell

http://www.TazaTek.com
http://www.twitter.com/kettlewell


More information about the wp-hackers mailing list