• 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.
    e.g.
    I can’t have:
    2007->october->articles
    &
    2007->november->articles

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

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)

    Thread Starter alexgeek

    (@alexgeek)

    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.
    Thanks

    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 wordpress.com we have adapted themes from www.remarpro.com. 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.

    Thread Starter alexgeek

    (@alexgeek)

    Okay, home-page shows the sidebar:
    https://www.creativecoding.net/development/
    This page and others like it doesn’t:
    https://www.creativecoding.net/development/2007/october/articles-october/off-line-promotional-techniques-for-your-website/

    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 ??

    Thread Starter alexgeek

    (@alexgeek)

    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 ??

    Thread Starter alexgeek

    (@alexgeek)

    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.

    Apologies.

    Thread Starter alexgeek

    (@alexgeek)

    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.