Advertisement
Guest User

Untitled

a guest
Aug 26th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. $id=get_the_ID();
  3. $result = get_child_pages_by_parent_title('brushes');
  4.  
  5. foreach ($result as $xx) {
  6. if ( $xx->post_parent==$id ){
  7. echo '<div class="type-show">';
  8.  
  9. echo '<div class="img-show">';
  10. if (has_post_thumbnail($xx->ID)){
  11. echo get_the_post_thumbnail($xx->ID,array(200,200),array('class' => 'post_thumbnail'));
  12. }
  13. echo '</div>';
  14.  
  15. echo '<div class="title-show"><a href="'.($xx->guid).'">'.($xx->post_title).'</a></div></div>';
  16. }}
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement