• Resolved jdunneirl

    (@jdunneirl)


    Hi guys,

    I have a homepage driven by wordpress content, index.php which is working fine, however when i access it like this

    mysite/wordpress as oppose to mysite/wordpress/home

    it does not display correctly, it displays a random post instead of the page content

    Here is my code


    <?php
    /*
    Template Name: Home Page
    */
    ?>
    <?php get_header(); ?>

    <!– Featured Page: –>

    <?php include(TEMPLATEPATH . ‘/library/includes/featured-page.php’); ?>

    <?php get_footer(); ?>

    The include has a few lines


    <?php global $is_home; ?>

    <div id=”main-bar”>
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post() ?>

    <?php the_content(); ?>

    <?php endwhile; else : ?>

    no posts

    <?php endif; ?>
    </div>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Homepage’ is closed to new replies.