From 49709e8cf818f94f330baf8044f7e61d28df9e57 Mon Sep 17 00:00:00 2001 From: nekenny Date: Fri, 3 Apr 2026 01:17:20 +0500 Subject: [PATCH] feat: add archive and single templates for all custom post types --- .../themes/bitwms-child/archive-case.php | 29 ++++ .../themes/bitwms-child/archive-course.php | 29 ++++ .../themes/bitwms-child/archive-event.php | 29 ++++ .../themes/bitwms-child/archive-material.php | 29 ++++ .../themes/bitwms-child/archive-webinar.php | 29 ++++ .../themes/bitwms-child/single-case.php | 129 ++++++++++++++++++ .../themes/bitwms-child/single-course.php | 91 ++++++++++++ .../themes/bitwms-child/single-event.php | 91 ++++++++++++ .../themes/bitwms-child/single-webinar.php | 109 +++++++++++++++ 9 files changed, 565 insertions(+) create mode 100644 wp-content/themes/bitwms-child/archive-case.php create mode 100644 wp-content/themes/bitwms-child/archive-course.php create mode 100644 wp-content/themes/bitwms-child/archive-event.php create mode 100644 wp-content/themes/bitwms-child/archive-material.php create mode 100644 wp-content/themes/bitwms-child/archive-webinar.php create mode 100644 wp-content/themes/bitwms-child/single-case.php create mode 100644 wp-content/themes/bitwms-child/single-course.php create mode 100644 wp-content/themes/bitwms-child/single-event.php create mode 100644 wp-content/themes/bitwms-child/single-webinar.php diff --git a/wp-content/themes/bitwms-child/archive-case.php b/wp-content/themes/bitwms-child/archive-case.php new file mode 100644 index 0000000..37e4cd2 --- /dev/null +++ b/wp-content/themes/bitwms-child/archive-case.php @@ -0,0 +1,29 @@ + +
+
+

+
+ + + + + +

+ +
+ '←', 'next_text' => '→' ) ); ?> +
+
+ +
+
+

+
+ + + + + +

+ +
+ '←', 'next_text' => '→' ) ); ?> +
+
+ +
+
+

+
+ + + + + +

+ +
+ '←', 'next_text' => '→' ) ); ?> +
+
+ +
+
+

+
+ + + + + +

+ +
+ '←', 'next_text' => '→' ) ); ?> +
+
+ +
+
+

+
+ + + + + +

+ +
+ '←', 'next_text' => '→' ) ); ?> +
+
+ +
+
+
+

+ + +
+ + + + + + + + + + + + +
+ + + +
+

+ +
+ + + +
+

+ +
+ + + +
+

+ +
+ + + + + + + +
+ +
+ + +
+

+ + + +
+
+ + 'case', + 'posts_per_page' => 3, + 'orderby' => 'rand', + 'post__not_in' => array( get_the_ID() ), + ) ); + if ( $related->have_posts() ) : + ?> + + +
+
+ +
+
+
+

+ +
+ + + + + + + + + + + + + + + + + + +
+ + +
+

+ +
+ + +
+ + + +
+
+ + 'course', + 'posts_per_page' => 3, + 'orderby' => 'rand', + 'post__not_in' => array( get_the_ID() ), + ) ); + if ( $related->have_posts() ) : + ?> + + +
+
+ +
+
+
+

+ +
+ + + + + + + + + + + + + + + + + + +
+ + +
+

+ +
+ + +
+ + + +
+
+ + 'event', + 'posts_per_page' => 3, + 'orderby' => 'rand', + 'post__not_in' => array( get_the_ID() ), + ) ); + if ( $related->have_posts() ) : + ?> + + +
+
+ time(); +?> +
+
+
+

+ +
+ + + + + + + + + + + + +
+ + +
+ +
+ + + +
+

+ +
+ + + +
+ + + +
+ + + +
+ + + +
+ +
+ + 'webinar', + 'posts_per_page' => 3, + 'orderby' => 'rand', + 'post__not_in' => array( get_the_ID() ), + ) ); + if ( $related->have_posts() ) : + ?> + + +
+
+