Guest User

Search & Filter Pro pagination problem

a guest
Dec 3rd, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.38 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div class="contenu-colonne">
  4.     <header>
  5.  
  6.         <?php do_action( 'foundationpress_before_content' ); ?>
  7.  
  8.         <h2><?php _e( 'Search Results for', 'foundationpress' ); ?> "<?php echo get_search_query(); ?>"</h2>
  9.  
  10.         <div class="searchandfilter">
  11.  
  12.         <?php
  13.         if(class_exists( 'Search_Filter' ))
  14.         {
  15.             echo do_shortcode('[searchandfilter id="12066"]');
  16.         }
  17.         ?>
  18.         </div>
  19.  
  20.     </header>
  21. </div>
  22. <div class="texture">
  23.  
  24.     <div class="contenu-colonne">
  25.  
  26.       <div class="full-column masonry-container">
  27.  
  28.             <?php if ( have_posts() ) : ?>
  29.  
  30.                 <?php while ( have_posts() ) : the_post(); ?>
  31.                     <?php get_template_part( 'content-ticket', get_post_format() ); ?>
  32.                 <?php endwhile; ?>
  33.  
  34.                 <?php else : ?>
  35.                     <?php get_template_part( 'content', 'none' ); ?>
  36.  
  37.             <?php endif;?>
  38.  
  39.             <?php do_action( 'foundationpress_before_pagination' ); ?>
  40.  
  41.             <?php if ( function_exists( 'foundationpress_pagination' ) ) { foundationpress_pagination(); } else if ( is_paged() ) { ?>
  42.  
  43.                 <nav id="post-nav">
  44.                     <div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'foundationpress' ) ); ?></div>
  45.                     <div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'foundationpress' ) ); ?></div>
  46.                 </nav>
  47.             <?php } ?>
  48.  
  49.             <?php do_action( 'foundationpress_after_content' ); ?>
  50.  
  51.         </div>
  52.        
  53.     </div>
  54.  
  55. </div>
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment