Seb Payne wrote:
> I am trying to create a simple page that will show the Archives using
> RN's Monthly Archive plugin. However, the problem I am having is I
> can't get the page to show in. When composing the page, I put <?php
> $theme->monthly_archives(); ?> into the form but it didn't work.
Others have suggested creating a file named page.{$slug}.php . This
should work well. Just create a template file named page.archives.php
and set the slug (content address) of the page to "archives". Habari
will use that template to display that page.
> I then tried to do an if statement in the page.single.php file so it
> would show only when the title was Archives but that didn't work
> ether, and just showed the Archives on every page. The code I tried
> was
>
> <?php if ($post->title = "Archives") { ?>
> <?php $theme->monthly_archives(); ?>
> <?php } ?>
This might have worked, but there is a small error in your code.
This line may work better:
<?php if ($post->title == "Archives") { ?>
Owen
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---