If the scripts aren't being enqueued automatically this means where you have implemented the shortcode or function call to display a form can't automatically do it. In that case you have to use the enqueue function that you linked to which can handle enqueuing the necessary scripts and CSS from your themes functions.php file.
It's not something we can "add". It's a limitation of WordPress and how and when you can enqueue scripts. You can only automatically do it from certain points the WordPress page execution cycle. This is primarily only from the post content in the main loop. Outside of that, it can't be done automatically without doing it inline. So the enqueue function is there so you can place it somewhere where the scripts can be enqueued.
Posted 12 years ago on Tuesday November 15, 2011 |
Permalink