PLEASE help! : Static home and custom Posts page
-
I hope someone can help me on this…
The site I’m working on is here.
I have a custom, semi-static home page. That works fine. it’s got two selective loops at the bottom of the static content.
My issue is that I can’t get the Posts page to work. Or at least get it to pick up the template.
I have a template called radical-ideas.php and a page with a slug of radical-ideas that is set to use the template file radical-ideas.php.
Even though I seem to have it set up correctly, when I navigate to radical-ideas.php, it seems to be using the default template. When I make changes to the radical-ideas.php file, they don’t show up, and the navigation indicator seems to think that it’s on the home page.
Here’s the template radical-ideas.php
<?php /* Template Name: Radical Ideas Blog */ ?> <?php get_header(); ?> <div id="content_box"> <div id="content"> <?php $posts = get_posts( "numberposts=10" ); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h2>FOO<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <p class="post_date"><?php the_time('F jS, Y') ?> — <?php the_category(', ') ?></p> <div class="entry"> <?php the_content("Continue reading →"); ?> </div> <p><?php the_tags('<b>Tags:</b>', ',', '<br />'); ?></p> <p class="post_meta"><span class="add_comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span></p> <?php edit_post_link('Edit', '', ' | '); ?> <?php endwhile; ?> <?php include (TEMPLATEPATH . '/navigation.php'); ?> <?php else : ?> <h2>If you're seeing this, it's time to go slap somebody.</h2> <p class="post_date">* * *</p> <div class="entry"> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
What the heck am I doing wrong?! I’m going nuts with this…
- The topic ‘PLEASE help! : Static home and custom Posts page’ is closed to new replies.