• Hi,

    ok – im a bit of a novice, and i could really do with some help. There is a requirement in my blog to make the sidebar conditional based on the author – im trying to use

    <?php
    // let’s generate info appropriate to the author being displayed
    if (is_author(‘Jo’)) {
    // do this
    } elseif (is_author(‘Jack’)) {
    // do this
    } elseif (is_author(‘Jim’)) {
    // do this
    }
    ?>

    but this plainly doesnt work. I have read every post in this forum – some seem to say its not possible, others seem to say it is but i havent been able to get any of them to work.

    Creative work arounds to achieve the same result would also be really welcomed.

    thanks so much for your help

    D

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

The topic ‘Conditional Sidebar – If Author Is’ is closed to new replies.