title: Getting querystring parameter value in wordpress
body: <p>I'm making a wordpress plugin. I've used add_query_string() inside anchors in order to load content based on what link the user has clicked. Now I need to know the best way to get the parameter value in the current URI.</p>
  
  <p>It's probably a pretty basic and stupid question, but I'm new to programming so I'm sorry if I misinterpret some terms.</p>
  
  <p>This is the code:</p>
  
  <pre><code>        if ( current_user_can('manage_options') ) {
              echo (
                  '&lt;div&gt;
                      &lt;ul&gt;
                          &lt;li&gt;&lt;a href="'.add_query_arg( 'adminoption', 1 ).'"&gt;option 1&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="'.add_query_arg( 'adminoption', 2 ).'"&gt;option 2&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;'
              );
  
              // if adminoption == 1 load content A
              // if adminoption == 2 load content B
  
          }
  </code></pre>