Wednesday, February 24th, 2016
Object fit details here
Tags: CSS, Edge, Fallback, IE11, Object-fit
Posted in CSS | No Comments »
Wednesday, February 24th, 2016
Useful code for Advanced custom fields (ACF) flexible content – perfect for page builders
<?php
if( have_rows('pagebuilder') ):
while ( have_rows('pagebuilder') ) : the_row();
if( get_row_layout() == 'hero' ):
get_template_part( 'assets/parts/pagebuilder/hero');
elseif( get_row_layout() == 'call_to_action' ):
get_template_part( 'assets/parts/pagebuilder/call-to-action');
endif;
endwhile;
else :
// no layouts found
endif;
?>
Tags: ACF, Custom Fields, Flexible content, Page builder, WordPress
Posted in PHP, WordPress | No Comments »