Forums

[resolved] Custom Sidebar issues in WordPress 2.9.2 (3 posts)

  1. fsamuel
    Member
    Posted 2 years ago #

    I just updated to the latest version of WordPress (2.92) and now i am having some issues with the code. I have set up different sidebars for different section of my site.

    For example for my single post page i use:

    <?php get_sidebar(post); ?> which uses sidebar-post.php!

    For archives i would use:

    <?php get_sidebar(archive); ?> which uses sidebar-archive.php!

    This however does not work any longer!!! anyone have any ideas why this is not working anymore or can tell me the correct code.

    cheers

  2. racer x
    Member
    Posted 2 years ago #

    Did you try quotes?
    <?php get_sidebar('archive'); ?>

  3. fsamuel
    Member
    Posted 2 years ago #

    ahh it was my fault.... both:

    <?php get_sidebar('archive'); ?>

    and

    <?php get_sidebar(archive); ?>

    do work, there was an issue with some widget on the sidebars!!

    thanks again

Topic Closed

This topic has been closed to new replies.

About this Topic