![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I have my website's homepage setup as a blog (http://www.leysinpark.ch). I was wondering if it is possible to ad the "Next" button at the bottom of the middle column. So far, my homepage right calls for 7 posts. I would like the person to be able to get down to the 7th and then be able to click on "Next" so that a new page loads up and shows the previous posts (homepage right) all while keeping homepage left and sidebar the same. Is this possible? i've tried adding the following: <?php posts_nav_link(); ?></p> but it does not call for the previous posts. it loads up the same page. Below is my home.php Thanks for your help. Blaise <?php get_header(); ?> <div id="content"> <div id="homepage"> <div id="homepageright"> <div> <?php $recent = new WP_Query("cat=8&showposts=7"); while($recent->have_posts()) : $recent->the_post();?> </div> <div class="featured"> <h2><?php the_title(); ?></h2> <?php the_time('F j, Y'); ?> | <?php comments_popup_link('Commentaires / Comments', '1 Comment', '% Comments'); ?><?php edit_post_link('(Edit)', '', ''); ?> <?php the_content(__('Lire la suite / Read the story »'));?><div style="clear:both;"></div> <?php endwhile; ?> </div> </div> <div id="homepageleft"> <div class="thumb"> <?php $recent = new WP_Query("cat=12&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h3>Park Conditions</h3> <?php the_time('F j, Y'); ?> <h2><?php the_title(); ?></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <?php endwhile; ?> </div> <div class="thumb"> <h3>Agenda</h3> <?php $recent = new WP_Query("cat=11&showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "Thumbnail", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="alt text" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/thumbnail.jpg[/img] <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(100, ""); ?> <div style="border-bottom:1px dotted #C0C0C0; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> </div> <div class="section"> <h3>Forum Messages</h3> <?php if (function_exists('wpphpbb_topics')): ?> <? wpphpbb_topics(); ?> <?php endif; ?> </div> <div class="thumb"> <h3>LeysinPark TV</h3> <?php $recent = new WP_Query("cat=13&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h2><?php the_title(); ?></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <script type="text/javascript"> function popup(url){ cuteLittleWindow = window.open(url, "littleWindow", "location=no,width=420,height=200"); } </script> <?php endwhile; ?> </div> <div class="thumb"> <h3>Partners</h3> <?php $recent = new WP_Query("cat=14&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h2><?php the_title(); ?></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <script type="text/javascript"> function popup(url){ cuteLittleWindow = window.open(url, "littleWindow", "location=no,width=420,height=200"); } </script> <?php endwhile; ?> </div> </div> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <?php get_footer(); ?> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script error on my home page | tim adam | General Discussion | 3 | 02-19-2009 02:43 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us