RE [wp-hackers] loading css only on page where plugin is used

Ozh ozh at
Wed Apr 22 11:50:00 GMT 2009

wp-hackers-bounces at a écrit sur 22/04/2009 13:38:04 :
> Hi all,
> I'm working on a plugin that uses a shortcode. I want to load a css file 

> for the plugin only for posts or pages that use the shortcode.

If you want to load the style only on some pages, maybe you can add it 
inline? If so, testing the presence of the shortcode in each post is easy 
(and you can also make it so it loads once in case multiple posts are 


More information about the wp-hackers mailing list