WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] sidebar scripts (3 posts)

  1. Jbert
    Member
    Posted 5 years ago #

    I made my first simple ugly theme, but it works, well about 95% When I made my sidebar.php I had the following:
    searchform
    calendar
    categories
    archives
    meta

    these were all php statements. When I brought up site 1st time none of these showed up but I could add widgets to the sidebar.

    I would love any thoughts on these.Here is a script example

    <?php wp_get_archives('type-monthly'); ?>

    Thanks

    Jim

  2. muthukswamy
    Member
    Posted 5 years ago #

    searchform
    calendar
    categories
    archives
    meta

    which were added by you will not be displayed when you add widgets. I can give more specific answer if I can see your complete sidebar code.

  3. Jbert
    Member
    Posted 5 years ago #

    Thanks, I found the answer by trial and error. I had the

    <?php endif; ?>

    in the wrong spot. Moved it and all showed up just perfectly. Thanks for chiming in and helping

Topic Closed

This topic has been closed to new replies.

About this Topic