大家好我是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 ); ?>