-
-
Save mgibbs189/8ef00bb4342c6dc60791b9e43941481f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
"post_type" => array( | |
"cpt1", | |
"cpt2" | |
), | |
'posts_per_page' => 28, | |
'orderby' => 'rand', | |
); | |
?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php if ( 'cpt1' == $post->post_type ) : ?> | |
Hello World | |
<?php endif; ?> | |
<?php if ( 'cpt2' == $post->post_type ) : ?> | |
Goodbye World | |
<?php endif; ?> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment