Order Tagebuch/Album/Tour entries reverse for Urlaub (oldest first -> chronological)

This commit is contained in:
Markus Ankenbrand 2016-09-12 21:16:11 +02:00
parent 0db2685810
commit 3e7dee4ca6

View file

@ -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