From 7e81f1a79005cccc6a791afefee103d017385b1c Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Mon, 13 Aug 2018 15:24:11 -0500 Subject: [PATCH] category pages --- category.php | 17 ++++++++++++++++- page.php | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 page.php diff --git a/category.php b/category.php index d8a5009..e6a09fd 100644 --- a/category.php +++ b/category.php @@ -6,7 +6,22 @@
-

+ + $cat->slug, + 'post_type' => 'page' + )); + + $page = array_shift($query->get_posts()); + ?> + +
+

post_title) ? $page->post_title : $cat->name; ?>

+ post_content); ?> +
diff --git a/page.php b/page.php new file mode 100644 index 0000000..2303b56 --- /dev/null +++ b/page.php @@ -0,0 +1,41 @@ + +> + + + Skip to main + +
+
+ +
> + + + + + +

+ + + + + post_name); + $link = get_category_link($cat->term_id); + + if($link) { + echo "

See more from $cat->name

"; + } + ?> + + + +
+ + + + +
+
+ + +