• Resolved respodev

    (@respodev)


    Hello @businessdirectoryplugin,

    I wan’t to custom a template but I can’t use some fields independently like :

    
    <p><?php echo $fields->t_phone->value; ?></p>
    

    Indeed, with this lines :

    <?php foreach ( $fields->not( 'social' ) as $field ): ?>
        <p><?php echo $field->html; ?></p>
        <p><?php echo $field->tag; ?></p>
     <?php endforeach; ?>' 
    

    I can’t see t_city field and t_country field working. When i use this lines :

    
     <p><?php echo $fields->t_city->value; ?></p>
      <p><?php echo $fields->t_country->value; ?></p>
      <p><?php echo $fields->t_state->value; ?></p>
      <p><?php echo $fields->t_website->value; ?></p>'
    

    Nothing is displayed. But the following lines worked well :

    
    <!-- category -->
      <p><?php echo $fields->t_category->value; ?></p>
    
    <!-- business name -->
      <h1><?php echo $fields->t_title->value; ?></h1>
    
      <!-- phone -->
      <p><?php echo $fields->t_phone->value; ?></p>
    
      <!-- address -->
      <p><?php echo $fields->t_address->value; ?></p>
    
      <!-- zipcode -->
      <p><?php echo $fields->t_zip->value; ?></p>
    
      <!-- doesn't work -->
      <p><?php echo $fields->t_city->value; ?></p>
      <p><?php echo $fields->t_country->value; ?></p>
      <p><?php echo $fields->t_state->value; ?></p>
      <p><?php echo $fields->t_website->value; ?></p>
     
    
    <!-- description -->
      <p><?php echo $fields->t_content->value; ?></p>
    

    Could you help please ?

    • This topic was modified 6 years, 7 months ago by respodev.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘business directory fields tag undisplayed’ is closed to new replies.