Title: $ is not defined error
Last modified: August 24, 2016

---

# $ is not defined error

 *  [ndunand](https://wordpress.org/support/users/ndunand/)
 * (@ndunand)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/is-not-defined-error/)
 * Hello,
 * Some JS code in the wp-views plugin is using $ as an alias for jQuery. The problem
   is that $ is undefined at this point, so the code fails. This might depend of
   course on other plugins/theme I have on this WP site.
 * By checking the code, I discovered that replacing ‘$’ with ‘jQuery’ (twice) in
   wp-content/plugins/wp-views/embedded/res/js/wpv-pagination-embedded.js on line
   221 solved the problem. No $’s are used anywhere else in this file, so I think
   this is just one who got forgotten.
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

The topic ‘$ is not defined error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ndunand](https://wordpress.org/support/users/ndunand/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/is-not-defined-error/)
 * Status: not resolved