Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <ul>
  2. <li><?php the_field('name_of_placement'); ?></li>
  3. <?php
  4. $terms = get_the_terms( get_the_ID(), 'country' );
  5. $names = array();
  6.  
  7. foreach ( $terms as $term ) {
  8. $names[] = $term->name;
  9. }
  10.  
  11. echo '<li>' . implode( ', ', $names ) . '<li>';
  12. ?>
  13. <?php
  14. $terms = get_the_terms( get_the_ID(), 'timeframe' );
  15. $names = array();
  16.  
  17. foreach ( $terms as $term ) {
  18. $names[] = $term->name;
  19. }
  20.  
  21. echo '<li>' . implode( ', ', $names ) . '<li>';
  22. ?>
  23. <li><?php the_terms( get_the_ID(), 'types_of_healthcare_placement' ); ?></li>
  24.  
  25. </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement