-
-
Save billerickson/3dfb6107be416872305c7d2e1461d3da 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 | |
$args = array( | |
'post_type' => 'my_post_type', | |
'my_custom_taxonomy' => 'custom_taxonomy', | |
'orderby' => 'post_date', | |
'order' => 'DIS' | |
); | |
$loop = new WP_Query( $args ); | |
if( $loop->have_posts() ): | |
while( $loop->have_posts() ): $loop->the_post(); global $post; | |
echo ''. get_the_post_thumbnail( $id ).''; | |
echo ''; | |
echo '' . get_the_title() . ''; | |
echo '' . get_the_excerpt() . '<a href="'. get_the_permalink() .'" rel="nofollow">...discover more</a>'; | |
echo ''; | |
echo ''; | |
endwhile; | |
endif; | |
echo '<!-- end -->'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment