title: How to access query variables in wordpress
body: <p>I want to access query string variable in <b>"single.php"</b> page which are assigned in <b>"archive.php"</b> page using these two functions</p>
  
  <pre><code>&lt;?php set_query_var('name',value); // in archive.php page ?&gt;
  &lt;?php $name = get_query_var('name'); //in single.php page ?&gt;
  </code></pre>
  
  <p>This variable is accessible in <b>"archive.php"</b> page only not in <b>"single.php"</b> . How can i achieve this without using directly passing variable from url method ?</p>