Title: page.php doesn´t work
Last modified: August 20, 2016

---

# page.php doesn´t work

 *  [Pancho Perez](https://wordpress.org/support/users/lonchbox/)
 * (@lonchbox)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/pagephp-doesnt-work/)
 * Recently I experimented a really weird bug, every time I try to view a page doesn
   ´t shows the page.php template use index.php, I thought could be some functions.
   php hacks I´m using (typical ones, login logo, remove dashboard widgets, etc)
   but even if I erase functions.php file the problem persist.
 * So, to check what happend I insert a function on the header.php of the theme 
   to see how it WP looks the content. The function I call is _if\_page_ located
   in wp-includes/themes.php.
    This is the answer if I get into a custom post type
   url:
 *     ```
       string(4) "home"
       bool(false)
       string(6) "single"
       bool(true)
       string(8) "category"
       bool(false)
       string(4) "page"
       bool(false)
       string(3) "tag"
       bool(false)
       ```
   
 * and this is the result of get into a page url:
 *     ```
       string(4) "home"
       bool(true)
       string(6) "single"
       bool(false)
       string(8) "category"
       bool(false)
       string(4) "page"
       bool(false)
       string(3) "tag"
       bool(false)
       ```
   
 * It should show _true_ on page but wont.
 * Any idea? I´m totally clueless :S 🙁
 * Thanx.

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

 *  Thread Starter [Pancho Perez](https://wordpress.org/support/users/lonchbox/)
 * (@lonchbox)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/pagephp-doesnt-work/#post-2435317)
 * Fixed! be carefull to create a custom post type with the same slug of a page,
   this it make me crazy 😛
 *  Thread Starter [Pancho Perez](https://wordpress.org/support/users/lonchbox/)
 * (@lonchbox)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/pagephp-doesnt-work/#post-2435497)
 * Well, it doesn´t was that, the problem persist even if I reinstall all (WP. themes,
   plugins) so found some info about rewrite in wordpress and this code works for
   me:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

The topic ‘page.php doesn´t work’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Pancho Perez](https://wordpress.org/support/users/lonchbox/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/pagephp-doesnt-work/#post-2435497)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
