Hi, running 1.5 now - I want to have my categories show in my archive pages..is this possible?
Hi, running 1.5 now - I want to have my categories show in my archive pages..is this possible?
I see them everywhere. Can you be more explicit?
Go to http://www.pixelmech.com - click on any category or story - no menu on the left anymore...
Well..you have to click on a story actually - not just a category.
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?
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?
It seems it is using archives.php possibly? I tried adding:
<?php get_sidebar(); ?>
to it, but it still does not show up...
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...
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.
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())) { ?>
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!
This topic has been closed to new replies.