Support » Fixing WordPress » problem in query_vars parameters

  • Resolved colt


    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 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 – especially after less than 20 minutes! If it’s that urgent, consider hiring someone.]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem in query_vars parameters’ is closed to new replies.