Title: Custom post type getting wrong template (possible bug?)
Last modified: August 21, 2016

---

# Custom post type getting wrong template (possible bug?)

 *  [ellp](https://wordpress.org/support/users/ellp/)
 * (@ellp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-post-type-getting-wrong-template-possible-bug/)
 * Hello
 * I’m using a custom post type to create a type name “produtos”. To do that I’m
   using the plugins:
    - Custom Post Type UI
    - and Advanced Custom Fields
 * To test how template the page is loading I’m using the follow code, placed on
   footer.php:
 *     ```
       <?php
       			// If the current user can manage options(ie. an admin)
       			if( current_user_can( 'manage_options' ) )
       			    // Print the saved global
       			    printf( '<div><strong>Current template:</strong> %s</div>', get_page_template() );
       			?>
       ```
   
 * I’m creating all that on child theme for TwentyTwelve theme.
 * The problem: I cant load the properly template. I’ve created, on the child theme,
   single-produtos.php and page-produtos.php and none of them is working. It still
   loading page.php (inside the child theme folder)
 * Any one has any idea to solve that???
 * Thanks

The topic ‘Custom post type getting wrong template (possible bug?)’ is closed to
new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [twenty twelve](https://wordpress.org/support/topic-tag/twenty-twelve/)

 * 0 replies
 * 1 participant
 * Last reply from: [ellp](https://wordpress.org/support/users/ellp/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/custom-post-type-getting-wrong-template-possible-bug/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
