Okay
  Public Ticket #2214398
Using get var between pages
Closed

Comments

  • GrupoDNA started the conversation

    Hi, how are you ?

    usually in wp, we can enable with a shot snippet the urls with get_vars and use them into content with :

    function custom_query_vars_filter($vars) {
    $vars[] .= 'myvar1';
    $vars[] .= 'myvar2';
    return $vars;
    }
    add_filter( 'query_vars', 'custom_query_vars_filter' );

    I am trying to add a link from a page to another but the site goes in 404 error page like : www.mydomain.tld/permalink/?n=myvar1=12341234&myvar2=test

    So I wonder if something in the theme is disabling this , because I cannot make it work.

    thank you for your help.

  •  896
    Linh replied

    Hello

    Please note: we are not responsible for handling errors if you have for your 3rd plugins and customized code. 

    If you want to redirect a page to another page, you can use this plugin:

    https://wordpress.org/plugins/redirection/

    Best regards