Welcome to WebDesignForums.net!
You're currently viewing WDF as a guest. By registering for a free account, you'll be able to participate with other members in our friendly community. Being a member allows you to ask questions and get answers for those troublesome web development tasks!

In addition, as a member you'll be able to post your websites up for review. Using our unique website review system you can gain some amazing feedback from some of the best web developers around. This is a completely free service to all registered members.

Ready to register yet? Registration is 100% free. Click Here To Join Now!

older post link on blog page not working

Discussion in 'Wordpress Help' started by John Tanedo, Jun 18, 2010.

  1. Offline

    John Tanedo New Member

    Message Count:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Ca***an de Oro City, Philippines
    Hey guys need help. . . still trying to figure out why the older post link on my blog page in my website isnt working. . .http://makeyourtheme.com/blog
    any ideas? any help would be much appreciated. . .
    I tried using this codes still theres no luck

    Code:
    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if ($paged < 2) {
    query_posts("posts_per_page=1&offset=(3 * $paged) + 1");
    }
    ?>
                   
    <?php query_posts('&cat=-4&posts_per_page=3'); ?>
    
                      <?php if (have_posts()): ?>
    
                             <?php while (have_posts()): the_post();?>
    
                          <div <?php post_class() ?> id="post-<?php the_ID();?>">
                            <div class="latest">
                                <div class="blogtitle"><h2><a href="<?php the_permalink() ?> "><?php the_title();?></a></h2></div>
                             
                             <p class="dateposted">Posted on: <?php the_time('l, F jS, Y') ?> at <?php the_time() ?></p>
                             <p class="author">by:<?php the_author(); ?></p>
                             <hr />
                             <div class="excerpt"><?php the_excerpt();?></div>
                            </div>    
                                       
                           </div>
                            
                        <?php endwhile; ?>
    <?php next_posts_link('&laquo; Older Entries') ?>
             <?php previous_posts_link('Newer Entries &raquo;') ?>
                      <?php else: ?>
    
                      <?php endif;?>
              


Share This Page