From 594078d9861b2ece05672e6afe8fb2a287cf287b Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 27 Mar 2023 22:28:07 +0200 Subject: [PATCH] template cat added --- pcf-wp/template-cat-page.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pcf-wp/template-cat-page.php diff --git a/pcf-wp/template-cat-page.php b/pcf-wp/template-cat-page.php new file mode 100644 index 0000000..81afdf9 --- /dev/null +++ b/pcf-wp/template-cat-page.php @@ -0,0 +1,19 @@ + 'my-category-slug', +); +$query = new WP_Query( $args ); +if ( $query->have_posts() ) : + while ( $query->have_posts() ) : $query->the_post(); + // your post content here + endwhile; + wp_reset_postdata(); +else : + // no posts found +endif; +?> +