Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // check if the flexible content field has rows of data.
  2. if ( have_rows( 'strips' ) ) :
  3. // loop through the rows of data.
  4. $strip_i = 0;
  5.  
  6. while ( have_rows( 'strips' ) ) :
  7. the_row();
  8.  
  9. $layout = get_row_layout();
  10.  
  11. $layout = str_replace( '_', '-', $layout );
  12.  
  13. include locate_template( 'tpl/parts/strip-' . $layout . '.php' );
  14.  
  15. $strip_i++;
  16.  
  17. endwhile;
  18.  
  19. else :
  20. // no layouts found.
  21. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement