Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Display custom query CPT -->
- <h2>Menu Unggulan</h2>
- <?php
- $homepageMenus = new WP_Query(array(
- 'post_type' => 'menu',
- 'tax_query' => array(
- array (
- 'taxonomy' => 'sajian',
- 'field' => 'slug',
- 'terms' => 'unggulan',
- )
- ),
- ));
- while($homepageMenus->have_posts()) {
- $homepageMenus->the_post(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement