Moderator
James Huff
(@macmanx)
Volunteer Moderator
Add <?php get_calendar();Â ?>
to sidebar.php.
Ok folks…I am a moron…I have NO clue where to put that code in…I am totally lost! I am perfectly willing to learn though! Does anyone have a good php tutorial online I could go look at? And maybe, just this once, you could show me the full snippet I need to enter?
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Stick it between Archive and Categories, that’ll at least give you an idea on how to position it. Ex:
<li><h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php get_calendar();Â ?>
<li><h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
</ul>
</li>
Ok, I put it EXACTLY where you showed…still nothing….is there any chance that when I installed 1.5 it didn’t have calendar?
http://www.seanpaune.com btw
Nope, no chance of that. get_calendar()
is a WordPress function. If you were missing it, you’d be missing template-functions-general.php, and have far more problems than your calendar not working.
You say you put it where you were shown, but was it in this file:
/wp-content/themes/classic/sidebar.php
Moderator
James Huff
(@macmanx)
Volunteer Moderator
My apologies, try adding it as:
<li id="calendar">
<?php get_calendar(); ?>
</li>
Ex:
<li><h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li id="calendar">
<?php get_calendar(); ?>
</li>
<li><h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
</ul>
</li>
Sorry about missing that tiny detail.
*slams head into laptop repeatedly* still nothing. I don’t get this…I am copying and pasting your stuff so no chance of typos….I am using the editor in WP so I know it isn’t a conflict there. Anything else you can think of?
And let me just say thank you for your extreme patience!
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Are you sure that you’re adding it to /wp-content/themes/classic/sidebar.php ?
Kafka – You are the man…I was in default…went into classic, updated and boom.
Thank you both for your patience with the total and complete n00b!
also…mac you are the man:) you both rock!
Just good to see you got things working the way you want them.
and you both got plugs for your sites in my blog….expect WAVES of traffic….alright…a drip:)
“Every deluge begins with a raindrop.”
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Thanks! Enjoy that new calendar. ^_-