Title: problem in query_vars parameters
Last modified: August 20, 2016

---

# problem in query_vars parameters

 *  Resolved [colt](https://wordpress.org/support/users/etg/)
 * (@etg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-in-get_query_var-function/)
 * Hi,
    I’ve a problem. I’ve tried a lot of things but I could not find a solution.
   I use query_vars parameters in [this page](http://www.oyunkayit.com/oyunara?ara=s4&kategori=1)
   and there isn’t any problem. But i don’t use different parameters or the same
   parameters in different custom page. Parameter value is always empty. Parameters
   used once ? Function.php :
 *     ```
       function parameter($qvars)
       {
       $qvars[] = 'kategori';
       $qvars[] = 'ara';
       $qvars[] = 'numara';
       $qvars[] = 'tur';
       return $qvars;
       }
       add_filter('query_vars', 'parameter');
       ```
   
 * videolar.php (../videolar?tur=test) :
 *     ```
       global $wp_query;
       echo $wp_query->query_vars['tur'] // empty
       ```
   
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping) – especially
   after less than 20 minutes! If it’s that urgent, consider [hiring someone](http://jobs.wordpress.net/).]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [colt](https://wordpress.org/support/users/etg/)
 * (@etg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-in-get_query_var-function/#post-3510272)
 * Is there someone who knows its solution ?
 *  Thread Starter [colt](https://wordpress.org/support/users/etg/)
 * (@etg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/problem-in-get_query_var-function/#post-3510502)
 * The problem is solved.
 * Re-save your permalink settings after you add the parameter. Or change the file
   permissions of .htaccess to 777.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘problem in query_vars parameters’ is closed to new replies.

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)
 * [query_vars](https://wordpress.org/support/topic-tag/query_vars/)
 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [colt](https://wordpress.org/support/users/etg/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/problem-in-get_query_var-function/#post-3510502)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
