• Resolved artsmc

    (@artsmc)


    I Always wanted to say that!
    all jokes aside I have a issue that has been bugging me for a week!
    I have a custom index file that displays the top 5 recent blogpost, and when the previous post button has been clicked it should pull in the last 5 post. BUUUTTTTT its not… ??

    <?php
    //The Query
    query_posts('cat=1&showpost=-1&posts_per_page=5');
    while (have_posts()) : the_post(); ?>
              <div class="post">
                <div class="content">
                <div class="holder">
                <div class="leftimg">
                    <div class="month"><?php the_time('M') ?></div><!--month-->
                    <div class="day"><?php the_time('d') ?></div><!--day-->
                </div><!--leftimg-->
                <div class="demo-show2 demo-show">
    			<h1><?php the_title(); ?></h1>
    			<p id="audioplayer_<?php the_id() ?>">Audio player replaces this text!</p>
    			 <script type="text/javascript">
           AudioPlayer.embed("audioplayer_<?php the_id() ?>", {
    	        soundFile: "<?php $key="link"; echo get_post_meta($post->ID , $key, true); ?>",
                titles: "<?php $key="title"; echo get_post_meta($post->ID , $key, true); ?>",
                artists: "<?php $key="artist"; echo get_post_meta($post->ID , $key, true); ?>",
                autostart: "no"
                });
           </script>
    			<h3></h3>
    
    			<div><?php the_content(); ?></div>
    			<a href="<?php the_permalink(); ?>" id="comment">Leave a Comment</a>
                </div><!--rightc-->
                </div><!--holder-->
                </div><!--content-->
              </div><!--post-->
    
    <?php endwhile;
    ?>
    <br/><br/>
    <p id="previous"><?php posts_nav_link('','','&laquo; Previous Entries') ?></p>
    <?php
    wp_reset_query();
    ?>

    https://podcast2.abi.org/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination Proclaimation’ is closed to new replies.