StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-11-2008, 11:37 AM
leysinpark leysinpark is offline
Registered User
Genesis Member
 
Join Date: Nov 2008
Posts: 5
Default Next Page script on Blog Page

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 &raquo;'));?><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 &raquo;'));?><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 &raquo;'));?><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 &raquo;'));?><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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 07:38 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.