Calling list item in option tree

  • 0

<?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>
          </div>
<?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>…

Leave a Reply

Your email address will not be published. Required fields are marked *