using Ajax: call to undefined function get_option
Basically, if you’re going to be making calls to WordPress functions, then you should be in the WordPress environment, which means that you should not be calling your own files to begin with, but should implement your AJAX call within a WordPress hook. Read up on this: http://codex.wordpress.org/AJAX_in_Plugins That article describes how to implement AJAX … Read more