Loop through Custom Post Types in Wordpress

1
2
<?php $loop = new WP_Query( array( 'post_type' => '[post-type-name]') ); ?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.