WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Custom Page Template not working

[Resolved] Custom Page Template not working

  • Just installed a test blog. No posts except Hello World. Tried to create a custom page template which is literally a copy of index.php from twenty ten (I want front page to show custom post types only and the blog part to be on a seperate page).

    <?php
    /*
    Template Name: Blog
    */
    ?>
    <?php get_header(); ?>
    <div id="container">
    <div id="content" role="main">
    <?php get_template_part( 'loop', 'index' );
    ?>
    </div><!-- #content -->
    </div><!-- #container -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    When I go to add page, the template drop-down shows the twenty ten default “one column no sidebar” template. But not the custom template.
    I even copied the one column template and renamed it “biteme” and uploaded it to the themes directory. Doesn’t show up.

    Obviously missing something simple and stupid.

Viewing 1 replies (of 1 total)
  • Apparently if you put the template file in a different installation of WordPress it doesn’t work so good. Was putting it in my main blog’s directory, not my test blog’s directory.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Custom Page Template not working’ is closed to new replies.
Skip to toolbar