title: Advanced Custom Fields (Loop user profile field)
body: <p>I have created a field within the wordpress profile (created with a plugin called Advanced Custom Fields) which allows customers to upload their logo. I would like to now loop through all those customers and display that logo (in a list preferably)</p>
  
  <p>Here are some attempts, can someone guide me to the right direction:</p>
  
  <pre><code>&lt;?php
      $args = get_users( array( 'fields' =&gt; array( 'display_name' ) ) );
      $loop = new WP_Query( $args );
          while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
              echo '&lt;li&gt;';
              echo '&lt;img src="';
              the_field('company_logo');
              echo '" alt="';
              the_field('company_name');
              echo '"/&gt;';
              echo '&lt;/li&gt;';
          endwhile;
  </code></pre>
  
  <p>Here is another attempt</p>
  
  <pre><code>        &lt;?php
              $blogusers = get_users( array( 'fields' =&gt; array( 'display_name' ) ) );
  
              $variable = get_field('company_logo', $blogusers);
  
              foreach ( $blogusers as $user ) {
                  echo the_field('company_logo', $blodusers);
              }
  
          ?&gt;
  </code></pre>
  
  <p>Another</p>
  
  <pre><code>&lt;?php
      $blogusers = get_users('orderby=company_name');
      $author_id = get_the_author_meta( 'ID' );
      $image1 = get_field('company_logo', 'user_'. $author_id );
          $image2 = get_field('company_name', 'user_'. $author_id );
  
      foreach ($blogusers as $author_id) {
              echo '&lt;li&gt;&lt;div class="image_wrapper"&gt;&lt;img class="profile1" src="';
              echo $image1['url'];
              echo '"/&gt;&lt;/div&gt;&lt;img class="profile2 hoverShow" src="';
              echo $image2['url'];
              echo '"/&gt;&lt;div class="imageOverlay"&gt;&lt;p&gt;';
              echo '&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;';
  
      }
  ?&gt;
  </code></pre>
  
  <p>None of the above are showing any results apart from the HTML echos'</p>
  
  <p>Thanks in advance</p>