• X29

    (@ray-doniel)


    Hi guys,
    I need to display a different sidebar depending on the page or child of, so I have

    <?php
    if (is_page('405'))
    { get_sidebar('2');}
    elseif ( is_page('98') )
    {get_sidebar('3');}
    else
    { get_sidebar(); }
    ?>

    but I can’t figure out how to make it calls the same sidebar if we are in a sub-page

    Thanks for any help

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to have different sidebar depending on pages’ is closed to new replies.