-
-
Save raaar/3193488 to your computer and use it in GitHub Desktop.
WORDPRESS: Loop Custom Taxonomy in custom Post type
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 // loop for taxonomy in custom post-type | |
$argsMine = array( | |
'numberposts' => -1, | |
'orderby' => 'desc', | |
'post_type' => 'info', | |
'section' => 'minesweeper', | |
'post_status' => 'publish' | |
); | |
$postslist = get_posts($argsMine); | |
foreach ($postslist as $post) : | |
setup_postdata($post); | |
?> | |
<li class="entry"> | |
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<p><?php the_content(); ?></p> | |
</li> | |
<?php endforeach; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment