How to convert a posts to pages on homepage
-
Hey new to the WP Support Forums ??
Am so hoping some on can help me in converting this so it can show pages instead of post on the homepage.Kudos to the people that can help me solve this ??
<?php query_posts(array("post__not_in" =>get_option("sticky_posts"),"posts_per_page"=>6,"paged"=>$paged)); ?> <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php $first_or_second = 'first'; ?> <?php global $more; $more = 0; ?> <div class="homecontentbox <?php echo $first_or_second; ?>"> <?php $first_or_second = ('first'==$first_or_second) ? 'second' : 'first'; ?> <div class="homecontentinfo"> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a> <?php the_excerpt(); ?> </div> <div class="readmore"> <a title="Click me to Watch or Download <?php the_title(); ?> " href="<?php the_permalink() ?>" rel="bookmark">+</a> </div> </div> <?php endwhile; ?> <div id="homecontentnav"> <div id="prevLink"><p><?php previous_posts_link(); ?></p></div> <div id="nextLink"><p><?php next_posts_link(); ?></p></div> </div> <?php else : // do not delete ?> <?php endif; // do not delete ?>
- The topic ‘How to convert a posts to pages on homepage’ is closed to new replies.