Update WordPress Custom Field with AJAX on cached page
WordPress loads jQuery in NoConflict mode. Do not use $. Use jQuery or one of the other solutions in the Codex. If that Javascript is in a .js file, that is not going to work. You cannot run PHP in a Javascript file like that, without reconfiguring the server, and the call to get_the_ID would … Read more