From 3569512aa5f1bf5ecf22894d259c5d3b4a739597 Mon Sep 17 00:00:00 2001 From: AK Delfin Date: Thu, 18 Nov 2021 14:25:24 +0300 Subject: [PATCH] autosender --- category-61.php | 35 ++++++++++++++++++++++++++++------- category-parthers.php | 2 +- category-rosselkhoznadzor.php | 2 +- category-votes.php | 2 +- functions.php | 21 ++++++++++++++++++++- single-2157.php | 2 +- single-61.php | 2 +- 7 files changed, 53 insertions(+), 13 deletions(-) diff --git a/category-61.php b/category-61.php index a33b1c1..a26a6a9 100644 --- a/category-61.php +++ b/category-61.php @@ -5,14 +5,34 @@ */ get_header(); -$nn = 0;?> +$nn = 0; + +$category = get_queried_object(); + + +/** +$query = new WP_Query( [ + + + 'orderby' => 'meta_value_date', + 'order' => 'ASC', + 'meta_key' => 'startevent', + 'post_type' => 'post', + 'category_name' => $category->name + + ] ); + + */ + + +?>
@@ -21,7 +41,9 @@ $nn = 0;?>
- + @@ -30,11 +52,10 @@ $nn = 0;?>
<?the_title();?> - -
-
+ +
diff --git a/category-parthers.php b/category-parthers.php index 84e78ab..6286529 100644 --- a/category-parthers.php +++ b/category-parthers.php @@ -12,7 +12,7 @@ $nn = 0;?>