Hi Thomas,
It depends on how you want to output the custom type posts. For example, if
you want to display them seperately (ie in their own "loop"), you would add
to your theme.php's add_template_vars() method something like:
if ( !$this->your_type ) $this->your_type = Posts::get( array(
'content_type' => 'your_type', 'status' => Post::status('published') ) );
if you want them to display as part of your entries loop, you'd overwrite
the $posts object by adding to the same method something like:
$this->posts = Posts::get( array( 'content_type' =>
array('entry','your_type'), 'status' => Post::status('published') ) );
Hope that helps...
Ali B. / dmondark
http://awhitebox.com
On Fri, May 8, 2009 at 10:06 PM, slogmen <[email protected]> wrote:
>
> Hi all,
>
> I think i know how to build a basic Custom Content Type with a plugin
> and FormUI. This works so far for me. But how do I output posts of an
> custom content type? Needs the theme some modifications or is it a
> simple function right into the plugin, that i have to write?
>
> thanks
> thomas
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---