custom loop and meta_query question
-
I have a loop that I want to bring results into an athlete profile page. But I only want results from the athlete to go onto their page. I have the loop and a meta_query but I keep getting an error and am not sure what I am missing?
<?php $args = array( 'post_type' => 'result', 'category_name' => 'results', 'orderby' => 'date', 'order' => 'ASC', 'posts_per_page' => '15', 'paged' => $paged, 'meta_query' => array( array( 'key'???? => 'result', ??????????????????'value'?? => 'result-athlete', ??????????????????'compare' => '=' ??????????????????) ) ); $the_query = new WP_Query( $args ); ?>
it keeps saying there is an error on the line that has ‘key’ => ‘result’.
Here is the error:
Parse error: parse error, expecting `’)” in …..I am at my wit’s end. not sure what I am missing. Any help would be awesome.
- The topic ‘custom loop and meta_query question’ is closed to new replies.