• 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.