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