title: I need to know when should i use wp_redirect()?
body: <p>I am using <code>wp_redirect()</code> to redirect to a URL but it gives me the warning below and does not redirect. When should I use <code>wp_redirect()</code>? And does any one know how <code>wp_redirect()</code> works?</p>
  
  <pre><code>**[Fri Feb 28 03:58:36 2014] [error] [client 127.0.0.1] PHP Warning:
    Cannot modify header information - headers already sent by (output
    started at /home/virgo/public_html/others/sites/wepay/wp-content/
    themes/twentythirteen/header.php:43) in /home/virgo/public_html/o
    thers/sites/wepay/wp-includes/pluggable.php on line 875, referer: 
    http://127.0.0.1/others/sites/wepay/?page_id=15**
  </code></pre>