Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id=get_the_ID();
- $result = get_child_pages_by_parent_title('brushes');
- foreach ($result as $xx) {
- if ( $xx->post_parent==$id ){
- echo '<div class="type-show">';
- echo '<div class="img-show">';
- if (has_post_thumbnail($xx->ID)){
- echo get_the_post_thumbnail($xx->ID,array(200,200),array('class' => 'post_thumbnail'));
- }
- echo '</div>';
- echo '<div class="title-show"><a href="'.($xx->guid).'">'.($xx->post_title).'</a></div></div>';
- }}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement