Exposing data using a custom WordPress API

You need a die(); before the closing } of the function and you might want to add the relevant php header to tell the browser it’s content-type I wouldn’t worry about the browser returning the wrong content type. As long as your code loading the data treats it as JSON So for your function try … Read more

AJAX Call is Only Returning 100 Results from Query

As otto implied in his comment, your code execution time is probably greater then the max php execution set in max_execution_time configuration directive in your php.ini, which is usually 30 seconds. You might be able to change that directive in php.ini or .htaccess, but it will only create a new problem as the user will … Read more

MySQL select query with ajax

Your list.php file does not load any of the WordPress Core, at least there is no indication that it does based on the code you posted. Thus, WordPress classes and functions are not going to be available, hence the error. Merely having a file in the theme folder does not mean that WordPress will load … Read more

Disallow second login session

The reason you’re not finding anything is because WordPress does not use any form of “sessions”. Login status information is not saved, or retrieved. Logging into WordPress basically sets a cookie in your browser which is a single authentication point. It is the equivalent of a username and password, with encryption and a timeout, all … Read more