network-wp-query
network-wp-query copied to clipboard
How to show sticky posts first?
I want to extract posts from my network, ordering them by date but I want sticky posts to be shown first. I'm trying this:
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'network' => true,
'orderby' => 'date',
'order' => 'DESC',
'post__in' => get_option( 'sticky_posts' ),
'ignore_sticky_posts' => false
);
No luck...