BShurilla09
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Home Page News sectionso 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 } ?>Forum: Fixing WordPress
In reply to: Home Page News sectionok, 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?
Forum: Fixing WordPress
In reply to: Home Page News sectionso 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; ?>Forum: Fixing WordPress
In reply to: Home Page News sectionok, 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?
Forum: Fixing WordPress
In reply to: Home Page News sectionok, that is over my head atm.. Are you able to explain it in more stupid terms lol?