Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $count = 0;
- $paged = 1;
- if ( get_query_var( 'paged' ) ) {
- $paged = get_query_var( 'paged' );
- }
- $args = array(
- 'post_type' => 'event',
- 'paged' => $paged,
- 'meta_query' => array(
- array( 'key' => 'location', 'value' => get_the_ID() ),
- ),
- );
- $tmp_query;
- global $wp_query;
- $the_query = new WP_Query( $args );
- $post_ids = array();
- if ( $the_query->have_posts() ) :
- if ( $template_type == 1) {
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- echo event();
- endwhile;
- }
Add Comment
Please, Sign In to add comment