Closed. This question needs
details or clarity. It is not currently accepting answers.
My Answer:
To add PHP code in a WordPress post without using a plugin, you can follow these steps:
1. Go to your WordPress dashboard and create a new post or edit an existing post.
2. Switch to the Text editor mode by clicking on the "Text" tab at the top right corner of the editor.
3. Paste your PHP code directly into the post editor.
4. Make sure to wrap your PHP code within the appropriate PHP tags ``.
5. Once you have added your PHP code, you can switch back to the Visual editor mode to preview your post.
6. Update or publish your post to save the changes.
It's important to note that adding PHP code directly into a post can be risky as it can potentially break your website if not done correctly. Make sure you have a backup of your site before making any changes and test your code thoroughly to ensure it works as expected.