Advertisement
BakerMan

Untitled

Feb 10th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. /**
  2.  * This code should be added temporarily to your theme's functions.php file
  3.  * (or you could set it up within its own plugin) ... please remove after
  4.  * testing.
  5.  */
  6. add_action( 'admin_notices', 'tribe_temp_debug_test' );
  7.  
  8. function tribe_temp_debug_test() {
  9.     $query = new WP_Query( array(
  10.         'post_status' => 'any',
  11.         'posts_per_page' => 1,
  12.         'meta_key' => '_EventStartDate',
  13.         'category_name' => 'Events'
  14.     ));
  15.  
  16.     echo '<p> </p><strong> Debug information </strong> ';
  17.     var_dump( $query->posts );
  18.     echo '</p>';
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement