Support

Account

Home Forums Front-end Issues Help Please: Links in the category of custom fields Reply To: Help Please: Links in the category of custom fields

  • Thank you for your huge answer, I have my last query, My idea is to do on the page post categories with links and I have solved them, now as would be categias with commas and without links.

    Please if you could help me with the okay, this is the last step.

    <ul class="modulejobs">
                <li> <strong>Places:</strong> <?php
    $empresa_terms = get_field( 'empresa' );
    if ( $empresa_terms ) {
      $total = count( $empresa_terms );
      $count = 1;
      foreach ( $empresa_terms as $empresa_term ) {
        echo $empresa_term->name;
        if ( $count < $total ) {
          echo ', ';
        }
        $count++;
      }
    }
    ?></li></ul>