Order Tagebuch/Album/Tour entries reverse for Urlaub (oldest first -> chronological)
This commit is contained in:
parent
0db2685810
commit
3e7dee4ca6
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue