From 3e7dee4ca690bfe26e0386772750cb100ab6f1d8 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 12 Sep 2016 21:16:11 +0200 Subject: [PATCH] Order Tagebuch/Album/Tour entries reverse for Urlaub (oldest first -> chronological) --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index b34ebc6..99519a9 100644 --- a/functions.php +++ b/functions.php @@ -45,6 +45,7 @@ function atravelblog_related_posts() { $tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch', 'posts_per_page' => -1, + 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'urlaub', // name of custom field @@ -67,6 +68,7 @@ function atravelblog_related_posts() { $album = new WP_Query( array( 'category_name' => 'Album', 'posts_per_page' => -1, + 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'urlaub', // name of custom field @@ -89,6 +91,7 @@ function atravelblog_related_posts() { $touren = new WP_Query( array( 'category_name' => 'Tour', 'posts_per_page' => -1, + 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'urlaub', // name of custom field