I have tried below script to load jQuery UI Autocomplete in theme. But it doesn't load their related scripts. How should I call it to work.


I think below scripts are jQuery UI related scripts for autocomplete but it's doesn't load.

<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.10.2'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.10.2'></script>

2 Answers 2


Try to load the script in the footer section.

<script type="text/javascript"
        <script type="text/javascript"
<script type="text/javascript">

This worked for me

  • I think it isn't WP prefer method but jquery-ui.min.js was loaded. Unfortunately still trouble to use autocomplete combobox feature. Anyway thanks for your help @1991wp
    – pico
    Commented Dec 31, 2015 at 6:42
  • According to the demo _create: function() { didn't work so no more input to work as demo.
    – pico
    Commented Dec 31, 2015 at 7:38

As for the stylesheets: WordPress does not register jQuery UI styles by default!

You have to include the theme you want by calling wp_enqueue_style(). Since you need the right version, you can call wp_scripts() and check for the registered jQuery UI core version.

See details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.