[wp-hackers] checking if post has shortcode, before header is output?

Aaron D. Campbell aaron at xavisys.com
Mon Oct 26 19:13:35 UTC 2009


That's true, and the best I can come up with for that is to do the CSS 
inline or put the <style> element in the body by outputting it from your 
shortcode handler (keeping track of when you output it so you don't 
output it more than once).

Austin Matzko wrote:
> That's probably the best way for JavaScript, but valid CSS <style>
> elements are supposed to be in <head>


More information about the wp-hackers mailing list