• Resolved brandon.mull

    (@brandonmull)


    I am writing a shortcode that creates a form and transforms an input field into a jquery datepicker. Of course, I have to include the necessary jquery ui files (registered by WP as jquery-ui-core, jquery-effects-core, jquery-ui-datepicker). So I was pleased to find that your plugin supports external files and is supposed to be able to insert them before the </head> tag by utilizing wp_enqueue_script(). However, the feature seems to be inactive. I searched through the source code and didn’t find anything that indicated you are actually supporting this feature (other than extracting it from an imported shortcode). The most compelling evidence is that there are no related labels or args listed in the custom post type you register with WP. Of course, I am new to WP; I’ve never written a plugin myself; and I only briefly searched through your source code; so, I could be missing something. I would be happy to add support myself into the source code, if you haven’t actually implemented it yet. Regardless, I need some information verifying whether or not it’s supported and if so, exactly how to properly use the input form to accomplish what I wanted. More specifically, is it sufficient to simply write ‘jquery-ui-datepicker’ into the URL field (under the External Files section) and to select ‘Use wp_enqueue’ as the include method?

    Please, do not recommend altering my theme’s template files or using some other plugin like jQuery UI. Everything that my shortcode depends on should be packaged into one location, not distributed throughout my application. I can figure out some hacky workaround all on my own, thank you.

    By the way, so far, your plugin is very practical and impressive. I would love to contribute out of respect.

    http://ww.wp.xz.cn/plugins/shortcodes-ui/

Viewing 1 replies (of 1 total)
  • Plugin Author Bainternet

    (@bainternet)

    The plugin supports using wp_enqueue_script both in head and body tag to include external files.

    and the use for it is very simple, you just need to set a full url for the script so if its jquery datepicker then use http://siteurl.com/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js

Viewing 1 replies (of 1 total)

The topic ‘External Files Feature Is Inactive’ is closed to new replies.