Title: PHP code in Pages?
Last modified: August 18, 2016

---

# PHP code in Pages?

 *  Resolved [gentist](https://wordpress.org/support/users/gentist/)
 * (@gentist)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/php-code-in-pages-2/)
 * Is it possible to use PHP code in Pages without manually hacking the Page post?
   I want to include a list of the subcategories in a certain category on a Page.
   Is there a way to do this without messing around or manually updating it everytime
   a new subcategory is added?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/php-code-in-pages-2/#post-420912)
 * I’d create a custom Page template for that page with the code for what you want
   to display… and make a new Page using that template.
 *  Thread Starter [gentist](https://wordpress.org/support/users/gentist/)
 * (@gentist)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/php-code-in-pages-2/#post-420921)
 * I’ll give it a try. Thanks.

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

The topic ‘PHP code in Pages?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [gentist](https://wordpress.org/support/users/gentist/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/php-code-in-pages-2/#post-420921)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
