Skip to content

Instantly share code, notes, and snippets.

@chrismeller
Created October 27, 2011 00:56
Show Gist options
  • Save chrismeller/1318490 to your computer and use it in GitHub Desktop.
Save chrismeller/1318490 to your computer and use it in GitHub Desktop.
Habari Change Homepage Content Type
<?php
class Foo extends Theme {
public function act_display_home ( $user_filters = array() ) {
$user_filters['content_type'] = Post::type( 'foo' );
parent::act_display_home( $user_filters );
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment