• I’ve figured out how to create custom content types but how can I get them to display in the loop? I’d like to customize the loop to work the same way as Tumblr. A photo type shows a photo, a link just posts a list – custom code in the loop for each type.

    Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    They don’t. Custom post types are separate from the loop, IIRC.

    Thread Starter ekrocker

    (@ekrocker)

    Right, but I’d like the display of each type of content displayed differently on the home page….

    Just add something like this within The Loop.

    <?php query_posts(array('post_type' => array('post', 'content_type_1','content_type_2'))); ?>

    And change your the content_type_$n stuff to your content type names. You can use multiple loops on the same page to display different things.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content Types / The Loop’ is closed to new replies.