Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bbarclay

    (@bbarclay)

    We had something like this in our old template, it was under author.php but we have a new template. I moved it over to there and now it doesn’t work like it did in the old template.

    `<?php
    global $wp_query;
    $curauth = $wp_query->get_queried_object();
    switch ($curauth->nickname){
    case ‘lwilliams’:
    echo ‘<meta http-equiv=”refresh” content=”0;url=http://www.andavotravel.com/about/press-release/”>’;
    break;
    case ‘klittle’:
    echo ‘<meta http-equiv=”refresh” content=”0;url=http://www.andavotravel.com/host/”>’;
    break;
    case ‘mcameron’:
    echo ‘<meta http-equiv=”refresh” content=”0;url=http://www.andavotravel.com/about/company”>’;
    break;
    case ‘joshcameron’:
    echo ‘<meta http-equiv=”refresh” content=”0;url=http://www.andavotravel.com/advisor”>’;
    break;
    default:
    echo ‘<meta http-equiv=”refresh” content=”0;url=http://www.andavotravel.com/advisor/’ . $curauth->nickname . ‘”>’;
    break;
    }
    ?>

    `

    Thread Starter bbarclay

    (@bbarclay)

    anybody

Viewing 2 replies - 1 through 2 (of 2 total)