Skip to content

Instantly share code, notes, and snippets.

@pelagisk
Created August 9, 2012 00:09
Show Gist options
  • Save pelagisk/3299877 to your computer and use it in GitHub Desktop.
Save pelagisk/3299877 to your computer and use it in GitHub Desktop.
Exempel 2 custom post types
<?php
$exempel = get_posts('post_type=exempel');
foreach( $exempel as $idx => $post ) {
setup_postdata($post);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment