Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this_cpt_id = get_the_id();
- $test = new WP_Query(array('showposts' => 20, 'post_parent' => $this_cpt_id, 'orderby' => 'menu_order' , 'post_type' => 'solutions' , 'order' => 'ASC'));
- if ( $test->have_posts() ) :
- while ($test->have_posts()) :
- $test->the_post();
- echo '<a class="white-box" href="';
- echo the_permalink();
- echo '">';
- echo the_title();
- echo '</a>';
- endwhile; endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement