Support » Fixing WordPress » Including a sidebar on every page category question.

  • 1. I want to include a sidebar on every page (custom one but get’s called just like get_siderbar() ). How can I do this so it appears on all pages? What file do I put it in?

    2. I have the main category 2007, with child categories for months june -> november. Each of these months also has child categoies (articles, faq etc). The problem is, wordpress won’t let me have more than one category with the same name, regardless of whether they are in the same section.
    I can’t have:

    Is there anyway I can allow wordpress to let me do this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • 1. Are we talking about Pages? – they, usually, are displayed by the page.php template file.
    Learn about Template_Hierarchy
    1a. No, you cannot use the get_sidebar for anything else than the default sidebar.php.
    It has been posted zillion times, here you go again:
    <?php include (TEMPLATEPATH . '/custombar.php'); ?>
    (use it as it is, change only the file name)

    Moshu, I know what the code is.
    I just don’t know where to put it! ha.
    Where can i put it so that it will be on every page, and not page as in a wordpress page, a page as in everything. Including blog posts, categories, pages etc.

    I don’t understand what are you talking about.
    Where is the sidebar (url, theme etc.) that doesn’t show up on every page?

    I’m a newbie so please go easy on me if I’m off-base. At we have adapted themes from Some of these themes display sidebars on every page and some do not. Is that a factor here?

    Maybe… but I hate theoretical discussions. Have a theme issue? Show it and we’ll deal with it.

    Okay, home-page shows the sidebar:
    This page and others like it doesn’t:

    More importantly, the category thing.
    If it isn’t possible to have categories with the same name but with different parent categories, everything I have done is a complete waste.

    1. The sidebar is a matter of theme design and template file editing.

    2. I really don’t know any solution for the same name category issue, sorry 🙁

    Thanks, so for the first one will I have to put the sidebar function in: category.php, page.php, archive.php, archives.php.. anymore?

    For the second. Do any of the coders who made WP ever post here? Maybe they could help, otherwise my next few weeks will be spent on coding a CMS from scratch 🙁

    umm What is that? It just tells me to sign up for something.

    Sorry. I thought the name was self-evident, but I often assume too much.

    That’s a mailing list where you’ll find developers. As you were looking for some, I thought you might find it useful.


    Don’t apologize! Great link thanks.
    Will try that.
    If anyone knows of a solution to my problems in the meantime, please shout!

    Was looking 4 the same thing, got it to work.

    In themes, look for the theme being applied on your website. In this folder, look for the file single.php.

    In this file add the following code:

    <?php get_sidebar(); ?>

    at the end of the page, just before

    <?php get_footer(); ?>

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Including a sidebar on every page category question.’ is closed to new replies.