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

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