• looking for redirecting with original parameters

    i tried to modify the original plugin source ( version 2.7.1 ) :

    /**
    	 * Performs a redirect, if appropriate
    	 */
    	function template_redirect() {
    		if ( !is_single() && !is_page() )
    			return;
    
    		global $wp_query;
    
    		$link = get_post_meta( $wp_query->post->ID, '_links_to', true );
    
    		if ( !$link )
    			return;
    		/* begin Modification */
                    if($_SERVER['QUERY_STRING']) {
                          $link .= '?' . $_SERVER['QUERY_STRING'];
                     }
                    /* end modification */
    		wp_redirect( $link, 301 );
    		exit;
    	}

    and works.. but maybe i′m missing something.

    Thanks all for your work.

    https://www.ads-software.com/extend/plugins/page-links-to/

  • The topic ‘[Plugin: Page Links To] url parameters’ is closed to new replies.