0

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?

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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