bootstrap Pagenation in wordpress not working inside page.php











up vote
0
down vote

favorite












I have create a page and in that page i am trying to run two queries in which oe contain pagenation. Except pagenation every thing is working fine. Here is what i have tried with bootstrap pagenation.



<div class="col-xs-12 col-md-9 article-content"><div class="row">
<div id="response">
<div class="session-featured-title">
<h5>Featured Property In <?php echo $area_title;?></h5>
<div class="related-control"><a class="btn prev"><i class="fa fa-arrow-left"></i></a><a class="btn next"><i class="fa fa-arrow-right"></i></a></div>
</div>
<div id="featured" class="owl-carousel owl-theme">
<?php
//Featured Property
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query(); $wp_query->query( array(
'post_type' => $property_type,
'post_status' => 'publish',
'posts_per_page' => -1,
'tax_query' => array( array (
'taxonomy' => 'property_city_taxonomy',
'field' => 'slug',
'terms' => $area_slug,
) ),'meta_query' => array(array(
'key' => 'we_recommend_make-featured-property',
'value' => '1')), )
);
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="item"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?>">
<div class="featured-image">
<?php the_post_thumbnail('full', array('class' => 'img-responsive') ); ?></div>
<div class="featured-text-holder">
<div class="recent-post-title"><?php the_title(); ?></div>
<div class="featured-meta-detail">
<div class="py-list-price"><?php ro_price(); ?></div>
<div class="py-list-bed"><?php ro_bedroom(); ?></div>
<div class="py-list-bath"><?php ro_bathroom(); ?></div></div>
</div>
</a></div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<script>
$(document).ready(function() {
var owl = $("#featured");
$("#featured").owlCarousel({
items : 4,
});
// Custom Navigation Events
$(".next").click(function(){
owl.trigger('owl.next');
})
$(".prev").click(function(){
owl.trigger('owl.prev');
})
$(".play").click(function(){
owl.trigger('owl.play',1000); //owl.play event accept autoPlay speed as second parameter
})
$(".stop").click(function(){
owl.trigger('owl.stop');
})

});
</script>

<?php
property_sorting();
$paged = 1;

$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query(); $wp_query->query( array(
'post_type' => 'forsale', 'post_status' => 'publish',
'posts_per_page' => 1,
'tax_query' => array( array (
'taxonomy' => 'property_city_taxonomy',
'field' => 'slug',
'terms' => 'paphos', ) ),
'meta_query' => array(array(
'key' => 'we_recommend_make-featured-property',
'value' => '1')), ) );

while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php
if(isset($_GET['view'])){ $view_type=$_GET['view']; } else{ $view_type='list'; }
if($view_type=='grid'){
get_template_part( 'template-parts/property', 'grid' );
}
else{
get_template_part( 'template-parts/property', 'list' );
}
?>
<?php endwhile;

if ($wp_query->max_num_pages > 1) :
?>
<nav class="prev-next-posts">
<?php if (function_exists('wp_bootstrap_pagination')) wp_bootstrap_pagination(); ?>
</nav>
<?php endif;
?>

<?php wp_reset_postdata();
?>
</div></div></div>


Link for bootstrap pagenation link is
Pagenation Link The page is also movie in the url but content stays same.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have create a page and in that page i am trying to run two queries in which oe contain pagenation. Except pagenation every thing is working fine. Here is what i have tried with bootstrap pagenation.



    <div class="col-xs-12 col-md-9 article-content"><div class="row">
    <div id="response">
    <div class="session-featured-title">
    <h5>Featured Property In <?php echo $area_title;?></h5>
    <div class="related-control"><a class="btn prev"><i class="fa fa-arrow-left"></i></a><a class="btn next"><i class="fa fa-arrow-right"></i></a></div>
    </div>
    <div id="featured" class="owl-carousel owl-theme">
    <?php
    //Featured Property
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query(); $wp_query->query( array(
    'post_type' => $property_type,
    'post_status' => 'publish',
    'posts_per_page' => -1,
    'tax_query' => array( array (
    'taxonomy' => 'property_city_taxonomy',
    'field' => 'slug',
    'terms' => $area_slug,
    ) ),'meta_query' => array(array(
    'key' => 'we_recommend_make-featured-property',
    'value' => '1')), )
    );
    while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <div class="item"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?>">
    <div class="featured-image">
    <?php the_post_thumbnail('full', array('class' => 'img-responsive') ); ?></div>
    <div class="featured-text-holder">
    <div class="recent-post-title"><?php the_title(); ?></div>
    <div class="featured-meta-detail">
    <div class="py-list-price"><?php ro_price(); ?></div>
    <div class="py-list-bed"><?php ro_bedroom(); ?></div>
    <div class="py-list-bath"><?php ro_bathroom(); ?></div></div>
    </div>
    </a></div>
    <?php endwhile; wp_reset_postdata(); ?>
    </div>
    <script>
    $(document).ready(function() {
    var owl = $("#featured");
    $("#featured").owlCarousel({
    items : 4,
    });
    // Custom Navigation Events
    $(".next").click(function(){
    owl.trigger('owl.next');
    })
    $(".prev").click(function(){
    owl.trigger('owl.prev');
    })
    $(".play").click(function(){
    owl.trigger('owl.play',1000); //owl.play event accept autoPlay speed as second parameter
    })
    $(".stop").click(function(){
    owl.trigger('owl.stop');
    })

    });
    </script>

    <?php
    property_sorting();
    $paged = 1;

    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query(); $wp_query->query( array(
    'post_type' => 'forsale', 'post_status' => 'publish',
    'posts_per_page' => 1,
    'tax_query' => array( array (
    'taxonomy' => 'property_city_taxonomy',
    'field' => 'slug',
    'terms' => 'paphos', ) ),
    'meta_query' => array(array(
    'key' => 'we_recommend_make-featured-property',
    'value' => '1')), ) );

    while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php
    if(isset($_GET['view'])){ $view_type=$_GET['view']; } else{ $view_type='list'; }
    if($view_type=='grid'){
    get_template_part( 'template-parts/property', 'grid' );
    }
    else{
    get_template_part( 'template-parts/property', 'list' );
    }
    ?>
    <?php endwhile;

    if ($wp_query->max_num_pages > 1) :
    ?>
    <nav class="prev-next-posts">
    <?php if (function_exists('wp_bootstrap_pagination')) wp_bootstrap_pagination(); ?>
    </nav>
    <?php endif;
    ?>

    <?php wp_reset_postdata();
    ?>
    </div></div></div>


    Link for bootstrap pagenation link is
    Pagenation Link The page is also movie in the url but content stays same.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have create a page and in that page i am trying to run two queries in which oe contain pagenation. Except pagenation every thing is working fine. Here is what i have tried with bootstrap pagenation.



      <div class="col-xs-12 col-md-9 article-content"><div class="row">
      <div id="response">
      <div class="session-featured-title">
      <h5>Featured Property In <?php echo $area_title;?></h5>
      <div class="related-control"><a class="btn prev"><i class="fa fa-arrow-left"></i></a><a class="btn next"><i class="fa fa-arrow-right"></i></a></div>
      </div>
      <div id="featured" class="owl-carousel owl-theme">
      <?php
      //Featured Property
      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query(); $wp_query->query( array(
      'post_type' => $property_type,
      'post_status' => 'publish',
      'posts_per_page' => -1,
      'tax_query' => array( array (
      'taxonomy' => 'property_city_taxonomy',
      'field' => 'slug',
      'terms' => $area_slug,
      ) ),'meta_query' => array(array(
      'key' => 'we_recommend_make-featured-property',
      'value' => '1')), )
      );
      while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
      <div class="item"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?>">
      <div class="featured-image">
      <?php the_post_thumbnail('full', array('class' => 'img-responsive') ); ?></div>
      <div class="featured-text-holder">
      <div class="recent-post-title"><?php the_title(); ?></div>
      <div class="featured-meta-detail">
      <div class="py-list-price"><?php ro_price(); ?></div>
      <div class="py-list-bed"><?php ro_bedroom(); ?></div>
      <div class="py-list-bath"><?php ro_bathroom(); ?></div></div>
      </div>
      </a></div>
      <?php endwhile; wp_reset_postdata(); ?>
      </div>
      <script>
      $(document).ready(function() {
      var owl = $("#featured");
      $("#featured").owlCarousel({
      items : 4,
      });
      // Custom Navigation Events
      $(".next").click(function(){
      owl.trigger('owl.next');
      })
      $(".prev").click(function(){
      owl.trigger('owl.prev');
      })
      $(".play").click(function(){
      owl.trigger('owl.play',1000); //owl.play event accept autoPlay speed as second parameter
      })
      $(".stop").click(function(){
      owl.trigger('owl.stop');
      })

      });
      </script>

      <?php
      property_sorting();
      $paged = 1;

      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query(); $wp_query->query( array(
      'post_type' => 'forsale', 'post_status' => 'publish',
      'posts_per_page' => 1,
      'tax_query' => array( array (
      'taxonomy' => 'property_city_taxonomy',
      'field' => 'slug',
      'terms' => 'paphos', ) ),
      'meta_query' => array(array(
      'key' => 'we_recommend_make-featured-property',
      'value' => '1')), ) );

      while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
      <?php
      if(isset($_GET['view'])){ $view_type=$_GET['view']; } else{ $view_type='list'; }
      if($view_type=='grid'){
      get_template_part( 'template-parts/property', 'grid' );
      }
      else{
      get_template_part( 'template-parts/property', 'list' );
      }
      ?>
      <?php endwhile;

      if ($wp_query->max_num_pages > 1) :
      ?>
      <nav class="prev-next-posts">
      <?php if (function_exists('wp_bootstrap_pagination')) wp_bootstrap_pagination(); ?>
      </nav>
      <?php endif;
      ?>

      <?php wp_reset_postdata();
      ?>
      </div></div></div>


      Link for bootstrap pagenation link is
      Pagenation Link The page is also movie in the url but content stays same.










      share|improve this question













      I have create a page and in that page i am trying to run two queries in which oe contain pagenation. Except pagenation every thing is working fine. Here is what i have tried with bootstrap pagenation.



      <div class="col-xs-12 col-md-9 article-content"><div class="row">
      <div id="response">
      <div class="session-featured-title">
      <h5>Featured Property In <?php echo $area_title;?></h5>
      <div class="related-control"><a class="btn prev"><i class="fa fa-arrow-left"></i></a><a class="btn next"><i class="fa fa-arrow-right"></i></a></div>
      </div>
      <div id="featured" class="owl-carousel owl-theme">
      <?php
      //Featured Property
      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query(); $wp_query->query( array(
      'post_type' => $property_type,
      'post_status' => 'publish',
      'posts_per_page' => -1,
      'tax_query' => array( array (
      'taxonomy' => 'property_city_taxonomy',
      'field' => 'slug',
      'terms' => $area_slug,
      ) ),'meta_query' => array(array(
      'key' => 'we_recommend_make-featured-property',
      'value' => '1')), )
      );
      while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
      <div class="item"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?>">
      <div class="featured-image">
      <?php the_post_thumbnail('full', array('class' => 'img-responsive') ); ?></div>
      <div class="featured-text-holder">
      <div class="recent-post-title"><?php the_title(); ?></div>
      <div class="featured-meta-detail">
      <div class="py-list-price"><?php ro_price(); ?></div>
      <div class="py-list-bed"><?php ro_bedroom(); ?></div>
      <div class="py-list-bath"><?php ro_bathroom(); ?></div></div>
      </div>
      </a></div>
      <?php endwhile; wp_reset_postdata(); ?>
      </div>
      <script>
      $(document).ready(function() {
      var owl = $("#featured");
      $("#featured").owlCarousel({
      items : 4,
      });
      // Custom Navigation Events
      $(".next").click(function(){
      owl.trigger('owl.next');
      })
      $(".prev").click(function(){
      owl.trigger('owl.prev');
      })
      $(".play").click(function(){
      owl.trigger('owl.play',1000); //owl.play event accept autoPlay speed as second parameter
      })
      $(".stop").click(function(){
      owl.trigger('owl.stop');
      })

      });
      </script>

      <?php
      property_sorting();
      $paged = 1;

      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query(); $wp_query->query( array(
      'post_type' => 'forsale', 'post_status' => 'publish',
      'posts_per_page' => 1,
      'tax_query' => array( array (
      'taxonomy' => 'property_city_taxonomy',
      'field' => 'slug',
      'terms' => 'paphos', ) ),
      'meta_query' => array(array(
      'key' => 'we_recommend_make-featured-property',
      'value' => '1')), ) );

      while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
      <?php
      if(isset($_GET['view'])){ $view_type=$_GET['view']; } else{ $view_type='list'; }
      if($view_type=='grid'){
      get_template_part( 'template-parts/property', 'grid' );
      }
      else{
      get_template_part( 'template-parts/property', 'list' );
      }
      ?>
      <?php endwhile;

      if ($wp_query->max_num_pages > 1) :
      ?>
      <nav class="prev-next-posts">
      <?php if (function_exists('wp_bootstrap_pagination')) wp_bootstrap_pagination(); ?>
      </nav>
      <?php endif;
      ?>

      <?php wp_reset_postdata();
      ?>
      </div></div></div>


      Link for bootstrap pagenation link is
      Pagenation Link The page is also movie in the url but content stays same.







      php wordpress wordpress-theming custom-wordpress-pages






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 15:25









      James Paul

      5310




      5310





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53192507%2fbootstrap-pagenation-in-wordpress-not-working-inside-page-php%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53192507%2fbootstrap-pagenation-in-wordpress-not-working-inside-page-php%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Academy of Television Arts & Sciences

          L'Équipe

          1995 France bombings