Problem with get_month_link
-
I’m having trouble getting this to work. I used the code directly out of the codex and I can’t seem to make it function right.
this is the code:
<?php
$arc_year = the_time('Y',FALSE);
$arc_month = the_time('m',FALSE);
?>
<a href="<?php echo get_month_link("$arc_year", "$arc_month"); ?>">archive
for <?php the_time('F') ?> <?php the_time('Y') ?></a>
For some reason the php defining the variables prints out on screen as “052005” before the link.
Then when I click on the link it brings me to archives of current month and not the month of the post.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Problem with get_month_link’ is closed to new replies.