daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Pega o id do author do post
  2. $autor_id=$post->post_author;
  3.  
  4. //Dados do Usuário
  5. $user = get_user_by( 'id', $autor_id );
  6. //var_dump($user->data)
  7. //Pega o valor savo no custom field
  8. $imagem_id = get_user_meta($autor_id, 'foto_do_autor', true);
  9.  
  10. /**
  11. * @return os atributos da imagem salva
  12. */
  13. $imagem = wp_get_attachment_image_src($imagem_id);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top