grab or load text on demand
You should really take a look at the AJAX in Plugins article. It gives examples of how to setup AJAX the proper way in WordPress. Here’s the basic workflow of using AJAX in WordPress: Create an enqueue your custom JavaScript file that uses jQuery.post or jQuery.get or jQuery.ajax Create a callback for the wp_ajax action … Read more