WordPress.org

Ready to get started?Download WordPress

Forums

Show categories in archive pages? (12 posts)

  1. tdellaringa
    Member
    Posted 8 years ago #

    Hi, running 1.5 now - I want to have my categories show in my archive pages..is this possible?

  2. moshu
    Member
    Posted 8 years ago #

    I see them everywhere. Can you be more explicit?

  3. tdellaringa
    Member
    Posted 8 years ago #

    Go to http://www.pixelmech.com - click on any category or story - no menu on the left anymore...

  4. tdellaringa
    Member
    Posted 8 years ago #

    Well..you have to click on a story actually - not just a category.

  5. moshu
    Member
    Posted 8 years ago #

    OK, you mean the content of the sidebar (menu) disappear? Why didn't you say so? :)
    Do you have a single.php template? If yes, does it call for the sidebar.php?

  6. tdellaringa
    Member
    Posted 8 years ago #

    I don't seem to have single.php template. I am modifying the default theme to suit my needs, I upgraded from 1.2. Do I need to make one?

  7. tdellaringa
    Member
    Posted 8 years ago #

    It seems it is using archives.php possibly? I tried adding:

    <?php get_sidebar(); ?>

    to it, but it still does not show up...

  8. tdellaringa
    Member
    Posted 8 years ago #

    And I just found single.php but it doesn't show up in admin as a theme file - and the only content in it anyway is this:

    Single

    seems odd...

  9. Lorelle
    Member
    Posted 8 years ago #

    Okay, I'm confused, and I'm sure you are, too. Did you create a sidebar.php template file with the sidebar information that you want in there? If so, then it should show up on every template file that you put it on. If you have an archives.php template file, add it there.

    Here is more information that will help you figure all this out:

    Template Files
    Template Tags
    Using WordPress Themes
    Developing WordPress Themes
    WordPress Lessons

  10. ceo
    Member
    Posted 8 years ago #

    Just copy your index.php and call it single.php - change whatever you need to in the new single.php to suit your needs.

  11. moshu
    Member
    Posted 8 years ago #

    See this line in the header.php:
    <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single()) && (! is_page())) { ?>
    and delete the single part:
    <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_page())) { ?>

  12. tdellaringa
    Member
    Posted 8 years ago #

    Ok copying index.php and making it single.php worked. Moshu, my header.php does NOT have that code in it..odd. Anyway its working. THanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.