Guest User

Untitled

a guest
Aug 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $count = 0;
  2. $paged = 1;
  3. if ( get_query_var( 'paged' ) ) {
  4. $paged = get_query_var( 'paged' );
  5. }
  6. $args = array(
  7. 'post_type' => 'event',
  8. 'paged' => $paged,
  9. 'meta_query' => array(
  10. array( 'key' => 'location', 'value' => get_the_ID() ),
  11. ),
  12. );
  13. $tmp_query;
  14. global $wp_query;
  15. $the_query = new WP_Query( $args );
  16. $post_ids = array();
  17. if ( $the_query->have_posts() ) :
  18. if ( $template_type == 1) {
  19. while ( $the_query->have_posts() ) :
  20. $the_query->the_post();
  21. echo event();
  22. endwhile;
  23. }
Add Comment
Please, Sign In to add comment