I am working on a wordpress code as shown below in which the modified post displays at the top.
$temp_args = [
'post_type' => array('current-channel', 'post', 'current-episodes'),
'post_status' => 'publish',
'orderby' => array(
'feat_yes' => 'ASC',
'post_type' => 'ASC',
'modified' => 'DESC',
'date' => 'DESC'),
'posts_per_page' => $data->{"no_articles_" . ICL_LANGUAGE_CODE},
'tax_query' => [
[
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $cat_today,
],
],
];
$q = new WP_Query($temp_args);
At this moment, order by is done in the following way:
'orderby' => array(
'feat_yes' => 'ASC',
'post_type' => 'ASC',
'modified' => 'DESC',
'date' => 'DESC'),
Problem Statement:
I am wondering what changes I should make in the code above so that sticky posts are displayed at the top before the regular post.
The order should be in a way that sticky post should be always at the top and then all the regular post