My current query looks like this.
$tag_id = 276;
$tag = get_tag($tag_id);
$today = date( "Y-m-d" );
$args = array(
'post_type' => array(
'post',
'review',
'cardguide'
),
'taxonomy' => 'post_tag',
'tag_id' => $tag_id,
'posts_per_page'=> - 1,
'orderby' => 'id',
'order' => 'DESC',
'meta_key' => 'event_end_date',
'meta_query' => array(
'relation'=> 'AND',
array(
'key' => 'event_start_date',
'value' => $today,
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'event_end_date',
'value' => $today,
'compare'=> '>=',
'type' => 'DATE'
)
)
);
$my_query = new Wp_query( $args );
I want to include a single post (can use post id) into this query. The post may not obey each of the rules I defined inside $args
. And also would like to have it always on top of the list (featured item).