Shortcode attributes from meta query variable


In the complying with shortcode, I have 2 variable, $today and also $tommorrow that are being called inside a custom-made meta inquiry.

 feature display_prognostika_home_loop($ atts, $material = null) {
// Obtain all the groups
$ taxonomy='diorganosi';.
$ today = current_time(" Y-m-d");.
$ tomorrow = day(" Y-m-d", strtotime(' tomorrow'));.

$ parent_terms = get_terms (.
range (.
' taxonomy' => > $taxonomy,.
' moms and dad' => > 0,.
' areas' => > 'ids',.
).
);.

$ terms_list = get_terms($ taxonomy,.
range (.
' hide_empty' => > real,// adjustment to real if you do not desire vacant terms.
' orderby' => > 'name',.
' order' => > 'ASC',.
' omit' => > $parent_terms,.
).
);.

ob_start();.

// Loophole with the $group terms.
foreach ($ terms_list as $term ):.

$ prognostika_loop = brand-new WP_Query(.
range(.
' post_type' => > 'prognostika',.
' showposts' => > -1,.
' order' => > 'ASC',.
' orderby' => > 'prog_date_time',.
' tax_query' => > range(.
range(.
' taxonomy' => > $taxonomy,.
' terms' => > range( $term->> term_id ),.
' area' => > 'term_id',.
).
),.
' meta_query' => > range(.
range(.
' essential' => > 'prog_date_time',.
' worth' => > $today,.
' contrast' => > '=',
' kind' => > 'DAY',.
),.
),.
).
);.
// result group title and also messages.
if($ prognostika_loop->> have_posts()) {
?>>.

<< div course=" gb-button-wrapper prognostiko-diorganosi-wrapper">>.

<< period course=" gb-button prognostiko-diorganosi"><> < period course=" gb-button-text"><>