Support » Fixing WordPress » Show categories in archive pages?

  • tdellaringa

    (@tdellaringa)


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

Viewing 11 replies - 1 through 11 (of 11 total)
  • moshu

    (@moshu)

    I see them everywhere. Can you be more explicit?

    tdellaringa

    (@tdellaringa)

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

    tdellaringa

    (@tdellaringa)

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

    moshu

    (@moshu)

    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?

    tdellaringa

    (@tdellaringa)

    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?

    tdellaringa

    (@tdellaringa)

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

    <?php get_sidebar(); ?>

    to it, but it still does not show up…

    tdellaringa

    (@tdellaringa)

    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…

    Lorelle

    (@lorelle)

    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

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

    moshu

    (@moshu)

    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())) { ?>

    tdellaringa

    (@tdellaringa)

    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Show categories in archive pages?’ is closed to new replies.