meta_query not working with the_content()
the_content() echoes data to the page so essentially your query looks like: ‘meta_query’ => array( array( ‘key’ => ”, ‘value’ => $related_venue_variable, ‘compare’ => ‘==’ ) ) You want get_the_content() to return a string that you can pass along through the query. However, having the post content as a meta key doesn’t make any sense. … Read more