title: WordPress: echo custom user meta data field
body: <p>I put custom user meta field in WordPress it is working fine. With this code:</p>
  
  <pre><code>if ( ! function_exists( 'ld_modify_contact_methods' ) ) :
  
      function ld_modify_contact_methods( $contactmethods ) {
          $contactmethods['dealername'] = __( 'Dealer Name' );
          return $contactmethods;
      }
  add_filter('user_contactmethods','ld_modify_contact_methods', 10, 1);
  </code></pre>
  
  <p>Now i'm trying to echo it's value on the front-end with this code:</p>
  
  <pre><code>$dealername = get_the_author_meta( 'dealername', $post-&gt;post_author ); 
   echo $dealername;
  </code></pre>
  
  <p>Also with this code:</p>
  
  <pre><code>echo get_the_author_meta( 'dealername');
  </code></pre>
  
  <p>Both are not working.
  Can anyone tell what i'm doing mistake here?</p>
  
  <p>Thanks in advance.</p>