mheinrich
Member
Posted 6 months ago #
Hello Everyone,
Let me first just say I love, love WordPress. I am very new to wordpress and am very impressed with it. But being new, well I think I broke something. I have a site I am using wordpress as a cms. So I created a page i called home and created a home template file (home.php) and them template has some extra stuff like a image slider and works great. Well it did until I went to the setting and changed the read to static page and home to my page that I added. Now it will not show the format and layout in the template. I have checked to make sure that the page has the template set to home, but still nothing. if I change the static home page to another page and then if I navigate to the page and it shows the correct layout.
So I come to sit at the knee of you wordpress guru.
Thanks,
Matt
mheinrich
Member
Posted 6 months ago #
Here is the home.php template
<?php
/**
Template Name:Home Template
*/
?>
<?php get_header(); ?>
<div id="divSlideShow">
<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
</div>
<div id="primary">
<div id="content" role="main">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="clsPageContent">
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
</div>
</div><!-- #content -->
<?php get_sidebar(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>
mheinrich
Member
Posted 6 months ago #
So from what I can figure out is that front-page.php is overriding my template page. So I replaced the content of front-page with the content of my template and it worked. Not sure if this is the right answer or not.