From 2c57b3c20dd1061bccd65f57cd78530b90687134 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 27 Jan 2016 16:22:26 -0500 Subject: [PATCH] for templates for coupons --- archive-glm_coupons.php | 68 ++++++++++++++++++++++++++++++++ single-glm_coupons.php | 26 ++++++++++++ taxonomy-glm_couponscategory.php | 68 ++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 archive-glm_coupons.php create mode 100644 single-glm_coupons.php create mode 100644 taxonomy-glm_couponscategory.php diff --git a/archive-glm_coupons.php b/archive-glm_coupons.php new file mode 100644 index 0000000..95511d1 --- /dev/null +++ b/archive-glm_coupons.php @@ -0,0 +1,68 @@ + + +
+
+ +
+
+
+
id="interior"> + +
+
+ +
+ GLM_COUPON_POST_TYPE, + 'meta_query' => array( + array( + 'key' => 'glm_coupons_enddate', + 'value' => $midnight, + 'compare' => '>=' + ), + array( + 'key' => 'glm_coupons_startdate', + 'value' => $midnight, + 'compare' => '<=' + ) + ) + ); + $query = new WP_Query($args); + ?> +

Coupon Archive

+ have_posts()) : while($query->have_posts()): $query->the_post();?> +
+ + ID, 'blog-feed-front'); ?> + +
+ +
+
+ +
+ +
> +
+

+ Posted on +
+ +
+
+
+ + +
+

+
+ +
+
+ diff --git a/single-glm_coupons.php b/single-glm_coupons.php new file mode 100644 index 0000000..5a3e27a --- /dev/null +++ b/single-glm_coupons.php @@ -0,0 +1,26 @@ + +
+
+
+ +
+
+ +
+
+ +
+
+ + + +

+ +
+
+
+ + + diff --git a/taxonomy-glm_couponscategory.php b/taxonomy-glm_couponscategory.php new file mode 100644 index 0000000..3803fa9 --- /dev/null +++ b/taxonomy-glm_couponscategory.php @@ -0,0 +1,68 @@ + + +
+
+ +
+
+
+
id="interior"> + +
+
+ +
+

Coupon Category

+ GLM_COUPON_POST_TYPE, + 'meta_query' => array( + array( + 'key' => 'glm_coupons_enddate', + 'value' => $midnight, + 'compare' => '>=' + ), + array( + 'key' => 'glm_coupons_startdate', + 'value' => $midnight, + 'compare' => '<=' + ) + ) + ); + $query = new WP_Query($args); + ?> + have_posts()) : while($query->have_posts()): $query->the_post();?> +
+ + ID, 'blog-feed-front'); ?> + +
+ +
+
+ +
+ +
> +
+

+ Posted on +
+ +
+
+
+ + +
+

+
+ +
+
+ -- 2.17.1