title: Wordpress - getting post meta, best practices
body: <p>I'm using Ajax for displaying posts in popup. I can't find information about true way to getting post meta. </p>
  
  <p>I can get meta field individually:</p>
  
  <pre><code>$project_client = get_post_meta( $postId, 'project_client',true );
  $project_date = get_post_meta( $postId, 'project_date',true );
  $project_place = get_post_meta( $postId, 'project_place',true );
  echo $project_client;
  </code></pre>
  
  <p>or to all at once:</p>
  
  <pre><code>$post_meta = get_post_meta( $post_id ); // array of all meta fields 
  echo $post_meta['project_client'][0];
  </code></pre>
  
  <p>Which way is right?</p>