From 9089ef87a75c7e8a45689888e08a5b1cec057661 Mon Sep 17 00:00:00 2001 From: NightSiesta Date: Wed, 3 Aug 2016 09:27:24 +0800 Subject: [PATCH] Create page-articleliist.php --- page-articleliist.php | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 page-articleliist.php diff --git a/page-articleliist.php b/page-articleliist.php new file mode 100644 index 0000000..93f7445 --- /dev/null +++ b/page-articleliist.php @@ -0,0 +1,51 @@ +post_title; +if( $show_content || $paged == 1 ) $post_content = apply_filters('the_content', $post->post_content); + +$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; + +$post_list = new WP_Query( + "posts_per_page=" . $posts_per_page . + "&orderby=" . $order_by . + "&order=" . $order . + "&cat=" . $cat . + "&paged=" . $paged +); + +?> + + + + + have_posts() ) : ?> + have_posts() ) : $post_list->the_post(); ?> + + + + + + + + + $post_list) ); /*使用了wp—pagenavi插件*/ ?> + + + + + + +