title: How to call Wordpress functions from outside Wordpress
body: <p>I have a standalone php page (which creates an export to csv) outside of my wordpress templates. I have had some success with using <code>&lt;?php require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' ); ?&gt;</code> - that allows me to do a basic query using <code>$wpdb-&gt;get_results</code> </p>
  
  <p>However, I need to access other functions such as <code>wp_get_current_user();</code> and that doesn't seem to be working. I have read that <code>require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php' );</code> should do this, but when I use that I get blank page.</p>
  
  <p>Any ideas?</p>