Advertisement
Guest User

Untitled

a guest
May 27th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <?php
  2.     $mypages = get_pages(
  3.     array(
  4.     'child_of' => $post->ID,
  5.     'sort_column' => 'post_title',
  6.     'sort_order' => 'ASC',
  7.     'depth'        => 0,
  8.  )
  9.  );
  10.  
  11. foreach( $mypages as $page ) {     
  12.  
  13.     ?>
  14.  
  15. <div class="hoerspiel-genre-grid">
  16.     <div class="left">
  17.         <div class="hoerspiel-genre-grid-bilder">
  18.         <a href="<?php echo get_page_link( $page->ID ); ?>">   
  19.               <?php echo get_the_post_thumbnail( $page->ID, 'medium' ); ?>
  20.         </a>
  21.         </div>
  22.     </div>
  23.   <div class="right">
  24.       <div class="hoerspiel-genre-grid-titel">
  25.       <a href="<?php echo get_page_link( $page->ID ); ?>"> 
  26.             <?php echo $page->post_title; ?>
  27.        </a>
  28.       </div>
  29.  
  30.       <div class="hoerspiel-genre-grid-text">
  31.           <?php echo $page->post_excerpt; ?>
  32.       </div>
  33.   </div>
  34. </div>
  35.  
  36.     <?php
  37.     }  
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement