Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter BShurilla09

    (@bshurilla09)

    so then the final loop code should look like this?

    <?php if( is_front_page() ) { ?>
            <?php if (have_posts()) : ?>
                   <?php while (have_posts()) : the_post(); ?>
                   <!-- do stuff ... -->
                   <?php endwhile; ?>
        <?php } ?>

    Thread Starter BShurilla09

    (@bshurilla09)

    ok, so here’s the body tag in my theme’s index.php

    <body>
    <div id="wrapper">
        <?php include(TEMPLATEPATH . "/menu.php"); ?>
        <?php include(TEMPLATEPATH . "/banner.php"); ?>
        <?php if($options['sidebarloc'] == 'left') { ?>
        <?php get_sidebar(); ?>
        <?php } ?>
        <div id="container">
            <?php include(TEMPLATEPATH . "/postlist.php"); ?>
        </div>
        <?php if($options['sidebarloc'] == 'right') { ?>
        <?php get_sidebar(); ?>
        <?php } ?>
        <div class="clear"></div>
        <?php get_footer(); ?>
    </div>
    </body>

    Would the loop code go right before the “clear” div?

    Thread Starter BShurilla09

    (@bshurilla09)

    so then to show the posts on the home page of the site in index.php my code should look like this?

    if( is_front_page() ) {
     <?php if (have_posts()) : ?>
                   <?php while (have_posts()) : the_post(); ?>
                   <!-- do stuff ... -->
                   <?php endwhile; ?>
         <?php endif; ?>

    Thread Starter BShurilla09

    (@bshurilla09)

    ok, I’m starting to figure it out, but where would I place this code if I wanted this to happen on only 1 page, and not the whole site?

    Thread Starter BShurilla09

    (@bshurilla09)

    ok, that is over my head atm.. Are you able to explain it in more stupid terms lol?

Viewing 5 replies - 16 through 20 (of 20 total)