1486 posts
  • Trendsetter
  • Most Wanted Winner
  • Author Level 5
  • Collector Level 3
+8 more
greenline
says

I searched a lot for something like this and it helped me a lot improving my plugins, so I am sharing it with Wordpress Plugins developers: http://wp.tutsplus.com/articles/quick-tip-improving-shortcodes-with-the-has_shortcode-function/

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

Like someone posted in the comments section, I don’t like parsing the whole content, it looks slowish.

This methos seems much better: http://scribu.net/wordpress/optimal-script-loading.html

1486 posts
  • Trendsetter
  • Most Wanted Winner
  • Author Level 5
  • Collector Level 3
+8 more
greenline
says

Indeed, the method you indicated is better, thanks for sharing it!

1744 posts Building the Web.
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Beta Tester
+10 more
ZoomIt
says

Just write wp_enqueue_script inside the add_shortcode function, the script will get loaded at the end of the < body > if the shortcode has been called

All problems solved

by
by
by
by
by
by