WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to get the Quick Chat WordPress plugin to load only if you click on a button.

I'm currently using this code:

$('#chat').load('path to my wp template/quick-chat.php');

... where the file 'quick-chat.php' has a WordPress function that calls Quick Chat. When the file loads, however, it's not recognizing the function. It's acting like it was outside of WordPress.

Any ideas?

share|improve this question

Your quick chat function is being loaded to late. It needs to be loaded in the proper WordPress sequence by adding it through a plugin or in functions.php.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.