Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,253
Total Threads: 80,789
Total Posts: 566,442
There are 115 users currently browsing (tf).
  Our Partners:
  TalkFreelance     Design and Development     Programming :

wordpress next_post_list

Thread title: wordpress next_post_list
    Thread tools Search this thread Display Modes  
02-17-2011, 09:25 PM
jasonm56 is offline jasonm56
jasonm56's Avatar
Status: I love this place
Join date: Jun 2007
Location: Minneapolis
Expertise: xhtml/css, jquery, php, mysql
Posts: 533
iTrader: 1 / 100%

jasonm56 is on a distinguished road

Send a message via MSN to jasonm56

  Old  wordpress next_post_list

I'm having some difficulties with creating an archive (or better yet, a super simple blog with very minimal features). I'm using the code described below and the previous post and next post links are not working how I want. Each of them will go to the next post, or previous post. If I click previous, I want it to show the next 3 previous posts. Make sense? I can't figure out the right way to do it.

PHP Code:
<?php $my_query = new WP_Query('category_name=&posts_per_page=3');
                    while (
$my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate $post->ID;?>
                         <div class="post2">
                        <h3><?php the_title(); ?></h3>
                <h4><?php the_time('l, F jS, Y'?></h4>
                           <p><?php the_content_limit(200"Read More"?><p>
        <?php endwhile; ?>  
        <?php next_post_link('%link''Next'); ?>
<?php previous_post_link('%link''Previous'); ?>


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed