WordPress Uncaught ReferenceError: jQuery is not defined
WordPress Uncaught ReferenceError: jQuery is not defined

Link to test case: https://gceatemp.wpenginepowered.com/test-member-directory/
Debugger code (debug.datatables.net):
Error messages shown: Uncaught ReferenceError: jQuery is not defined
Description of problem:
I had used data tables before and similar code had worked. I am not sure why I can't get this functoning.
I fill in a member table with values manually.
in the php code -
echo '
Name | Member? | Membership | Primary?  | Program |
---|---|---|---|---|
' . $one->first_name . ' | ' . $status . ' | ' . $membership . ' | ' . $corporate . ' | ' . "private" . ' |
';
This question has an accepted answers - jump to answer
Answers
You are getting the error here in line 2:
This is the first thing executed in your script before any of the Javascript library includes.
I don't see where you are loading
jquery.js
on the page. You have this:You will want to load
jquery.js
before this as datatables requires jQuery. You will also want to move thescript
block you have at the top after you load jquery.js since it relies on jquery.js being loaded.Kevin
I'm not familiar with Wordpress but, after doign a bit of research, it sounds like WP comes "pre-loaded" with jQuery. You are getting the error before trying to load Datatabes. The error might be something specific with the WP environment/config. Maybe this tutorial will help with using Javascript libraries with Wordpress. Or possibly review the Wordpress docs for using jQuery.
Kevin
Thanks for taking the time to debug this and respond. It is tough getting this to work in WordPress. There are a couple WordPress plugins that include data tables, like TablePress and wpDataTables. I'm working on using them instead.