• Hello,

    On some template i have a Go to first child redirection

    $child_page = get_pages( "child_of=" . $post->ID . "&sort_column=menu_order" );
    
    if ( $child_page ) {
    
        // get id of first child page
        $firstchild = $child_page[0];
        wp_redirect( get_permalink( $firstchild->ID ) );
        exit();
    
    }

    That is not working anymore with W3 Total Cache, because of you know, the cache. Is there a way to make it work again or i have to play with 301 redirect?

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘wp_redirect not working on W3TC’ is closed to new replies.