Calling list item in option tree
- by admin
- 0
<?php
if(get_option_tree(“dealer1”)
<?php if ( function_exists( ‘ot_get_option’ ) ) {
/*get the pages array */
$pages = ot_get_option( ‘dealer1’, array() );
if ( ! empty( $pages ) ) { ?>
<?php foreach( $pages as $page ) {?>
<h3><?php echo $page[‘title’];?></h3>
<?php }
}
}?>
<?php }?>
<?php if(get_option_tree(“dealer1”)) { ?> // name of list item <?php if ( function_exists( ‘ot_get_option’ ) ) { /*get the pages array */ $pages = ot_get_option( ‘dealer1’, array() ); if ( ! empty( $pages ) ) { ?> <?php foreach( $pages as $page ) {?> <div class=”box1″> <h3><?php echo $page[‘title’];?></h3> <p><?php echo $page[‘description’];?></p>…
<?php if(get_option_tree(“dealer1”)) { ?> // name of list item <?php if ( function_exists( ‘ot_get_option’ ) ) { /*get the pages array */ $pages = ot_get_option( ‘dealer1’, array() ); if ( ! empty( $pages ) ) { ?> <?php foreach( $pages as $page ) {?> <div class=”box1″> <h3><?php echo $page[‘title’];?></h3> <p><?php echo $page[‘description’];?></p>…