I’d like to use the same code(template) for each environment.
and I use the code below but it doesn’t work well.
when front page, I’d like to use the custom fields of Option.
In the other case, I’d like to use custom fields as each page.
the code is below.
when the front page, it doesn’t work.
<?php
if(is_front_page()){
$contents = array(‘section-set’,’option’);
}else{
$contents = ‘section-set’;
}
?>
<?php if( have_rows($contents) ): ?>
<?php
while ( have_rows( $contents ) ): the_row();
?>
Does anyone know the solutions?
Regards.