Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // check if the flexible content field has rows of data.
- if ( have_rows( 'strips' ) ) :
- // loop through the rows of data.
- $strip_i = 0;
- while ( have_rows( 'strips' ) ) :
- the_row();
- $layout = get_row_layout();
- $layout = str_replace( '_', '-', $layout );
- include locate_template( 'tpl/parts/strip-' . $layout . '.php' );
- $strip_i++;
- endwhile;
- else :
- // no layouts found.
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement