Home › Forums › Back End › Can't get WordPress custom post type posts by custom taxonomy › Reply To: Can't get WordPress custom post type posts by custom taxonomy
October 13, 2015 at 12:10 pm
#209638
Dragore
Participant
Heres the a snippet that I use, hopefully it helps.
<?php $recent = new WP_Query(array('cat' = 'CAT_ID')); while($recent->have_posts()) : $recent->the_post(); ?>
...
<?php endwhile; ?>
Then I use the snippet
<?php echo types_render_field('TYPES_FIELD_SLUG'); ?>
to get the types custom field.