Title: Include php pages in wordpress pages
Last modified: August 19, 2016

---

# Include php pages in wordpress pages

 *  [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/)
 * Hello,
 * I have written a database that uses php to gather the the info from a mysql database
   and then display it in a table.
 * How do I get this to show in wordpress? I have 7 .php pages that I need to show
   on my wordpress site. Is this possible?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917390)
 * page templates:
 * [http://codex.wordpress.org/Pages#Page_Templates](http://codex.wordpress.org/Pages#Page_Templates)
 *  Thread Starter [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917467)
 * I’ve no idea what I’m meant to do?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917470)
 * You need to create custom templates for each of your 7 pages. See the link provided
   above.
 *  Thread Starter [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917471)
 * What do I change in each of my 7 pages exactly?
 * I tried making that snarfer.php and then putting the same code at the top of 
   my other pages but nothing changed.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917475)
 * You create the templates and then apply them to Pages on your site. Please try
   reading the provided link thoroughly.
 *  Thread Starter [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917478)
 * I understand the part about creating a new template. but do I go to add a new
   page, and copy the PHP code from my file into there? Cause that didn’t work.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917481)
 * No! Create the templates and then **apply them** to new WordPress Pages.
 *  Thread Starter [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917484)
 * I get you now. Create my new page, and then set the template as that page?
 * I did that, but my new page just displays as normal. It’s not wrapped around 
   my wordpress site. This is how my page looks.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * (@marklcfc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917486)
 * <?php get_header(); ?>
 * I think I’ve sorted it now, didn’t release that had to be added into it as well

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

The topic ‘Include php pages in wordpress pages’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [marklcfc](https://wordpress.org/support/users/marklcfc/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/include-php-pages-in-wordpress-php/#post-1917486)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
