Title: PHP code showing as text
Last modified: April 29, 2024

---

# PHP code showing as text

 *  Resolved [pzh20](https://wordpress.org/support/users/pzh20/)
 * (@pzh20)
 * [2 years ago](https://wordpress.org/support/topic/php-code-showing-as-text/)
 * I have inserted a php snippet, selected Custom Functions, selected backend and
   Administrator, but the code is showing at the top of all pages on the backend
   as text.
 * Do I need the <php></?> tags

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [pzh20](https://wordpress.org/support/users/pzh20/)
 * (@pzh20)
 * [2 years ago](https://wordpress.org/support/topic/php-code-showing-as-text/#post-17720197)
 * Actually, with or without the <php></?> it still shows as text
 *  Plugin Author [Bilal TAS](https://wordpress.org/support/users/bilaltas/)
 * (@bilaltas)
 * [2 years ago](https://wordpress.org/support/topic/php-code-showing-as-text/#post-17721468)
 * Hi [@pzh20](https://wordpress.org/support/users/pzh20/),
 * Yes, you need to start with PHP tags as follows:
 * > <?php
   >  your php codes here…
 * That is because someone might need to add some HTML codes with PHP codes in it.
   That’s why starting with opening PHP tag is optional according to usage scenario.
 * I hope this answers your questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP code showing as text’ is closed to new replies.

 * ![](https://ps.w.org/custom-codes/assets/icon.svg?rev=2536106)
 * [CodeKit - Custom Codes Editor](https://wordpress.org/plugins/custom-codes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-codes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-codes/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-codes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-codes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-codes/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bilal TAS](https://wordpress.org/support/users/bilaltas/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-code-showing-as-text/#post-17721468)
 * Status: resolved