Ondersteuning » Algemeen WordPress » index posts_nav_link

  • Opgelost rafdevis

    (@rafdevis)


    –> http://fiskerstudio.com

    Index pagina heeft 3 posts en posts_nav_link opent niet de volgende 3 posts maar gewoon weer dezelfde 3 meest recente. Tot voor kort werkte het nog maar nu opeens niet meer en kan probleem niet vinden.

    Hier is code voor index.html:

    <?php get_header(); ?>
    
    <style type="text/css">
    
    body {
    height:100%;
    
     }
    -->
    </style>
    
    <?php $withcomments=1 ?>
    
    <script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    
    <!-- FEATURED POST -->
    
    <div class="content">
    
    <!-- BEGIN LOOP -->
    
    <div id="thepost">
    
    <?php query_posts('cat=-ID&showposts=3&offset=0'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
     <div class="post" id="post-<?php the_ID(); ?>">
    
                <div class="postMeta-post">
    
      <h3> <a href="<?php the_permalink() ?>#comments" title="Jump to the comments"><?php the_title(); ?></a></h3>
    <?php if(function_exists(getILikeThis)) getILikeThis('get'); ?>             
    
                <span class="date"><?php the_time('F j, Y') ?></span>
                <div class="clear"></div>
    
                <span class="comments"><a href="<?php the_permalink() ?>#comments" title="Jump to the comments"><?php comments_number('0', '1', '%'); ?>
    </a></span>  
    
             <span class="share"><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?> </span>
    
                <div class="clear"></div>
    
                </div> 
    
       <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
    
    <div class="postMeta-post2">
    
       <span class="author"> [Author: <?php the_author() ?> | Date:    </span>
                <span class="date"><?php the_time('F j, Y') ?>]</span>
                <div class="clear"></div>
                <span class="post-category"><p>categories: <?php the_category(' | ') ?></p></span>
                <div class="clear"></div>
    
                <span class="comments"><a href="<?php the_permalink() ?>#comments" title="Jump to the comments"><?php comments_number('0', '1', '%'); ?></a></span>  
    
           <span class="share"><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?> </span>   
    
              <span class="ilikeit">   <?php if(function_exists(getILikeThis)) getILikeThis('get'); ?> </span>
    
                <div class="clear"></div>
    
                </div> 
    
        <p><?php edit_post_link('Edit Post', '', '  '); ?></p>    
    
    </div>
    
     <?php endwhile; else: ?>
    
      <p>Sorry, no posts matched your criteria.</p>  
    
    <?php endif; ?>
    
     <!-- FEATURED 2 linklinklink -->
    
    <div id="pagenav"><?php posts_nav_link(); ?></div>
     </div>
    
    <!-- END LOOP -->
    
     </div>
    </div>
    
    </noscript></noscript>
    
    <div id="front-bottom">
    
                       <div id="latest-wrap">
    
        <div id="connect3">
    
    <p>Blog Archive</p>
    
       </div>
    
                                                    <!-- Edit Below 3 --> 
    
    <?php query_posts('cat=-ID&showposts=20&offset=20'); ?>
    
                                                    <?php while (have_posts()) : the_post(); ?>
                                                     <div class="latest-post-wrap">
                                                               <div class="latest-post">
    
    <div class="latest-title">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                                                                       </div>
                                                                       <div class="latest-image">
                                                                                 <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php      the_title_attribute(); ?>"><?php image_attachment('image', 123, 83); ?></a>
                                                                       </div>
                                                    </div>
                                           <div class="latest-content">
                                                 <div class="postMeta-front">
    <!-- <span class="date"><?php the_time('F j, Y') ?></span> -->
    
                               <!-- <span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span> -->
                                </div>
                                <div class="clear">
                                </div>
    
                                                       </div>
                            <div class="clear">
                                                    </div>
              </div>
                                                              <?php endwhile; ?> <!-- END -->
                         <div class="clear">
                         </div>
    <div id="archiving">
      <!-- Start AWSOM Archive Output -->
    <?php if (function_exists('display_my_awsom_archive_custom')) { display_my_awsom_archive_custom(); } ?>
    <!-- End AWSOM Archive Output -->
    </div>
    
      </div>
      </div>
    
    <?php get_sidebar(); ?>
     <div class="clear"></div>
    <?php get_footer(); ?>
    
     <!-- END -->
    
    </div>
     <div class="clear"></div>
     </div>
     <div class="clear"></div>
     </div>
1 reactie aan het bekijken (van in totaal 1)
1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘index posts_nav_link’ is gesloten voor nieuwe reacties.