WordPress doesn't execute PHP in posts by default. In this blog, we’ll go over two ways to add a simple code snippet to your post.
While WordPress may not execute any PHP text inside of a WordPress post, there are ways to get around it. You can either use a plugin, which is one of the safest option, that can allow you to insert PHP snippets. Manually, you can also define a snippet using shortcodes, ultimately executing PHP in the process. Learn more about the steps from our blog.














