WP Query post meta value
Thanks to @Howdy_McGee. He gave me the hint to look after serialized meta queries. With this code I get the desired result. $args = array( ‘posts_per_page’ => -1, ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘enterprise_on_page’, ‘value’ => serialize(strval(‘trainees’)), ‘compare’ => ‘LIKE’, ), ), ); $enterprise_posts = … Read more