Meta compare not works, really need help.
-
Hi I use this shortcode:
[ajax_load_more post_type=”event” meta_key=”event_end_date” meta_value=”‘.$today.'” meta_compare=”<“]
and it’s not run the shortcode, no errors not enything, just echo shortcode like the text.But other works good like this one:
[ajax_load_more post_type=”event” meta_key=”event_end_date” meta_value=”‘.$today.'” meta_compare=”>”]Can you somehow help me, please?
Thanks.
P.S.
This query works well
$today = date('Ymd'); $events_past_args = array( 'post_type' => 'event', 'posts_per_page' => 12, 'meta_query' => array( array( 'key' => 'event_end_date', 'value' => $today, 'compare' => '<' ), ), );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Meta compare not works, really need help.’ is closed to new replies.