fix media posts, ref #3

- order by custom publish date
- output all of them, not just 50
This commit is contained in:
Matthias Kretschmann 2016-01-08 16:49:49 +01:00
parent ea081446a2
commit 2a5a38cddd
1 changed files with 4 additions and 2 deletions

View File

@ -743,8 +743,10 @@ class Subtemplate {
$args = array(
'post_type' => 'presscoverage',
'order' => 'ASC',
'posts_per_page' => 50
'order' => 'DESC',
'meta_key' => 'date_published',
'orderby' => 'meta_value_num',
'posts_per_page' => -1
);