Title: wp_enqueue_script problem!
Last modified: August 20, 2016

---

# wp_enqueue_script problem!

 *  [William Rufino](https://wordpress.org/support/users/williamhrs/)
 * (@williamhrs)
 * [15 years ago](https://wordpress.org/support/topic/wp_enqueue_script-problem-2/)
 * Hi There,
 * I’m trying to use wp_enqueue_script on my theme, to insert 3 javascript files
   on my page.
 *     ```
       function mr_forms() {
                       wp_register_script('validate-jquery',  get_bloginfo('template_url') . '/js/jquery.validate.min.js', array('jquery'),FALSE,TRUE);
                       wp_enqueue_script('validate-jquery');
                       wp_register_script('aditional-methods', get_bloginfo('template_url') . '/js/additional-methods.min.js', array('jquery','validate'),FALSE,TRUE);
                       wp_enqueue_script('aditional-methods');
                       wp_register_script('messages-ptbr', get_bloginfo('template_url') . '/js/messages_ptbr.js', array('jquery','validate'),FALSE,TRUE);
                       wp_enqueue_script('messages-ptbr');
                       wp_register_script('forms', get_bloginfo('template_url') . '/js/forms.js', array('jquery', 'maskedinput'), FALSE, TRUE);
                       wp_enqueue_script('forms');
                   }
   
                   add_action('init', 'mr_forms');
       ```
   
 * But only the last javascript, “forms.js” is being inserted on my page, the others
   arent, does anyone know what might be happening ? and the other doesnt matter…

Viewing 1 replies (of 1 total)

 *  Thread Starter [William Rufino](https://wordpress.org/support/users/williamhrs/)
 * (@williamhrs)
 * [15 years ago](https://wordpress.org/support/topic/wp_enqueue_script-problem-2/#post-2085665)
 * Anyone please?

Viewing 1 replies (of 1 total)

The topic ‘wp_enqueue_script problem!’ is closed to new replies.

## Tags

 * [script](https://wordpress.org/support/topic-tag/script/)
 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)
 * [wp_register_script](https://wordpress.org/support/topic-tag/wp_register_script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [William Rufino](https://wordpress.org/support/users/williamhrs/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/wp_enqueue_script-problem-2/#post-2085665)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
