How to make a single wordpress post as the homepage or a static page?
I've been trying to do this for a while and I'm not able to get it working.
I would like this post:
http://douglassvilletownhomes.com/?p=11
to be my home page.
I've tried making a custom template that calls the post but I dont think I did it right and doesn't display everything properly.
I used the following code, but it doesn't seem to pull the data properly.
<?php /* Template Name: PostDisplayTemplate */ ?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2 class="h2-section h2-property"><?php the_title(); ?></h2>
<?php include(TEMPLATEPATH . '/lib/inc/details.php'); ?>
<h2 id="h2-description" class="h2-section"><?php _e('Description',TS_DOMAIN); ?></h2>
<div id="post-<?php the_ID(); ?>" class="box3 description clearfix">
<?php the_content(); ?>
<?php the_tags('<p class="post-tags">'.__('Tags').': ', ', ', '</p>'); ?>
</div>
<?php include(TEMPLATEPATH . '/lib/inc/photos.php'); ?>
<?php include(TEMPLATEPATH . '/lib/inc/location.php'); ?>
<?php include(TEMPLATEPATH . '/lib/inc/contact.php'); ?>
<?php // comments_template(); ?>
<?php endwhile; ?>
<?php else : ?>
<h2 id="h2-404" class="h2-section"><?php _e('Sorry, not found!',TS_DOMAIN); ?></h2>
<div class="box3 clearfix">
<p><?php _e('Sorry, no entries matched your criteria.',TS_DOMAIN); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div><!-- end post -->
<?php endif; ?>
<?php get_footer(); ?>
Does anyone have any idea how I can make this work?? Help!!
Thanks!
Web Design & SEO Agency | Serving World Wide from New Delhi, India