Recent Topics

1 May 13, 2006 12:21    

hi

I want my blog to have (what looks like..) a permanent post at the top, giving some information about the site.

At the moment i have done this in html within _main.php

this looks fine one the main blog page, however when you click on a "proper" post (to add comments or whatever) this fake-post is still at the top of the page - i would like it not to be..

is it possible to assign a post "permenant" status? or is it possible to have a seperate template for the main blog and individual post pages?

thanks,

jeff

2 May 13, 2006 12:51

This should accomplish what you want :-

<?php
if ( !$p and !$more & !$c and !isset($b) & !$pb & !$paged ){
?>
<!-- put your permanent post here -->
<?php
}
?>


¥

3 May 13, 2006 13:01

excellent, works perfectly. thank you!

what is it actually doing? are the $x just things which are specific to the individual-post pages? (just a guess, i'm not much of a programmer!)

anyway, thanks!

jeff

4 May 13, 2006 13:06

In a nutshell .... yes ;)

¥

5 May 13, 2006 19:33

i wonder if there would be a similar option for the "archives" page? (the one you get when clicking "more..")

6 May 14, 2006 10:57

I think this is what you mean :-

<?php
if ( !$p and !$more & !$c and !isset($b) & !$pb & !$paged and !( isset( $disp ) and $disp == 'arcdir' ) ){
?>
<!-- put your permanent post here -->
<?php
}
?>

¥

7 May 14, 2006 16:34

yes, it is. thanks again!

jeff


Form is loading...