Custom Post type loop in template and do_action
-
Hi I have a a custom post type loop inside a page template, which is coded like that
<?php $args = array( 'post_type' => 'partners' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); echo '<div class="partner-name">'; the_title(); echo '</div>'; echo '<div class="entry-content">'; the_content(); echo '</div>'; endwhile; ?>
Where should I place the do_action hook to show the custom taxonomies I created? If I add it before endwhile it doesn’t work.
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Post type loop in template and do_action’ is closed to new replies.