WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] problem in query_vars parameters (3 posts)

  1. colt
    Member
    Posted 1 year ago #

    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 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.]

  2. colt
    Member
    Posted 1 year ago #

    Is there someone who knows its solution ?

  3. colt
    Member
    Posted 1 year ago #

    The problem is solved.

    Re-save your permalink settings after you add the parameter. Or change the file permissions of .htaccess to 777.

Topic Closed

This topic has been closed to new replies.

About this Topic