<?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