Note: the following example is wrong*. Do not do it! I often see code like the following: I want to explain the proper way of manually running shortcodes using PHP. *Ok, it’s not strictly wrong, it’s just not the best solution all the time.
Manually Running Shortcodes
This is just a small idea. For more information, see this blog post.