help.. help.. help.
im so stressed out on this calendar thing.
Okay, i have a calendar and future events list on my sidebar..
The future events function works nicely, no problem.. the links go directly to my single.php file and display.
The calendar month link (top of calendar) is going to the archives page ( i know, i can make it go to a categrory-#.php page if i want, but that is not the point.)…
Anyhow, the calendar month link is going to the archives page and the archives page is only listing the category title… the status link at the bottom of my browser indicates something like the following:
When clicking the calendar month link:
https://www.jeanpaulhaire.com/brooke/index.php?m=200510&cat=5
When clicking the calendar day link:
https://www.jeanpaulhaire.com/brooke/index.php?m=20051013&cat=5
However, if i click on a day of a month before clicking on the month link:
https://www.jeanpaulhaire.com/brooke/index.php?m=20050909&cat=5
This gives me a nice title.. like: Daily News & Events for September 9th, 2005
I like that part.. i just wish that when i clicked on the month.. it would give me something like…. Monthly News & Events for September, 2005… instead of the category title.
here is the php at the top of the page… its a category.php:
<div id=”content” class=”narrowcolumn”>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class=”pagetitle”>:: <?php echo single_cat_title(); ?> ::</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class=”pagetitle”>Daily News & Events for
<?php the_time(‘F jS, Y’); ?>
</h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class=”pagetitle”>Monthly News & Events for
<?php the_time(‘F, Y’); ?>
</h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class=”pagetitle”>Yearly News & Events for
<?php the_time(‘Y’); ?>
</h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class=”pagetitle”>Search Results</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class=”pagetitle”>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h2 class=”pagetitle”>Blog Archives</h2>
<?php } ?>
somebody please please please help me.