daily pastebin goal
4%
SHARE
TWEET

Untitled

BakerMan Feb 10th, 2014 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top