/ Published in: PHP
Query any Post Type anywhere
Expand |
Embed | Plain Text
//when 'blog' is the custom post type $loop = new WP_Query( $args ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php endwhile; ?>
You need to login to post a comment.
