0

大家好,我是wordpress的新手,我想创建下一个和上一个分页,我对下一个和上一个分页有问题,我找不到方法。我很努力地去做,但还是做不到,如何我能做到吗,请帮帮我。感谢您。这是我的代码 page_movie.php

<?php 
       global $wpdb;
       $lastedate = $wpdb->get_var("
       SELECT substr(meta_value,1,7) as Date
       FROM ".$wpdb->prefix."postmeta 
       WHERE meta_key = 'details_release_date' 
       AND meta_value <> ''
       AND meta_value >= '".date('Y-m-d')."' 
       GROUP BY substr(meta_value,1,7) 
       ORDER BY substr(meta_value,1,7) ASC
       LIMIT 1
       ");                      
      _e(do_shortcode('[movies limit="-1" type="Now Showing"]')); 
      _e(do_shortcode('[movies limit="-1" type="Coming Soon" compare="BETWEEN" start="'.date('Y-m-d').'" end="'.$lastedate.'-31"]')); 
     _e(do_shortcode('[movies limit="-1" type="Released" compare="BETWEEN"  start="'.date('Y').'-01-01" end="'.date('Y-m-d').'"]'));
      ?>
<?php the_posts_pagination( $lastedate ); ?>  
4

0 回答 0