Advertisement
Guest User

magic fields 2 thumbnails

a guest
Mar 7th, 2012
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. <?php
  2.   // second way to get the fields
  3.  
  4.   // get_group we return an array with all groups and fields of the group
  5.   // the parameter to this function is the name of the group
  6.   $miembros = get_group('miembro');
  7.   // to see how this made the arrangement can use pr($miembros);
  8.   // the way this arrangement is made
  9.   // [index of the group] [field name] [index of the field]
  10.   // for fields image type level but in accordance with the letter "o" to the original image or "t" for thumbnail
  11.   foreach($miembros as $miembro){
  12.     echo $miembro['nombre_miembro'][1]."<br />";
  13.     echo $miembro['puesto_miembro'][1]."<br />";
  14.     echo "<img src='".$miembro['foto_miembro'][1]['t']."'><br /><br />";
  15.   }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement