Hello everyone,
i am newbie
i already have a function that can pull the latest post
but how do i pull the Latest Blog Post except the one that is currently viewed,
function getLatestPostsBySport() {
$sportHolder = $this->owner->Parent();
while($sportHolder && ($sportHolder->ClassName != 'RedirectorPage')) {
$sportHolder = $sportHolder->Parent();
}
if(!$sportHolder) return false;
return FeedAggregator::posts_by_sport($sportHolder,10);
}
please help.. thanks in advance