Title: Include page
Last modified: August 18, 2016

---

# Include page

 *  [BoBB](https://wordpress.org/support/users/bobb/)
 * (@bobb)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/include-page/)
 * Whats the easiest way in wp-1.5 to include a php page instead of the blog postings?
   There must be some place in the default theme that calls a certain page from 
   the theme directory but I can’t find it. Any help is much appreciated.

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

 *  [Labradork](https://wordpress.org/support/users/yardobeef/)
 * (@yardobeef)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/include-page/#post-158675)
 * The [WordPress Codex](http://codex.wordpress.org/Pages) is your friend. Read 
   about [Pages](http://codex.wordpress.org/Pages) and scroll down to “Pages can
   use Different Templates”.
 *  Thread Starter [BoBB](https://wordpress.org/support/users/bobb/)
 * (@bobb)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/include-page/#post-158696)
 * I don’t want to use a different template for a wordpress page, I want to be able
   to include a different php page instead of the one that calls the posts.
 *  Thread Starter [BoBB](https://wordpress.org/support/users/bobb/)
 * (@bobb)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/include-page/#post-158702)
 * Ah, nevermind, I had to read that a few times before I could understand it heh
 *  [trevorturk](https://wordpress.org/support/users/trevorturk/)
 * (@trevorturk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/include-page/#post-159213)
 * This is a useful code snippet for making an “edit this page” link to whatever
   page you’re including. You’ll need to change the number used in this example,
   unless the page you’re including has an ID of “2”.
 * `
    if(is_home()) { // if this is the home page (in this example, i'm including
   a post with id=2) $original_post = $post; // save the current $post for later
   $post = $wpdb->get_row('SELECT * FROM wp_posts WHERE ID="2"'); // get the page
   you're including } edit_post_link('Edit this Page', '<li>', '</li>'); // echo
   the edit link $post = $original_post; // set $post back to the original value

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

The topic ‘Include page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [trevorturk](https://wordpress.org/support/users/trevorturk/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/include-page/#post-159213)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
