Shortcode loading text
-
Hi guys.
I’m working on a plugin that uses a shortcode. The code that runs to produce output for the shortcode can sometimes take a while to complete so currently there is just a blank space on the post until the shortcode returns some text.
I have looked around Google (with no success) for some code to implement some “loading” text for the shortcode. The idea is that when the page loads, the shortcode can display “Loading results” (or similar) until the code has completed at which point the “Loading results” text can be replaced with the actual results.
I was hoping someone here could provide some boilerplate code for this or point me towards some documentation or tutorial that covers this functionality.
Thanks
- The topic ‘Shortcode loading text’ is closed to new replies.