Skip to content

Instantly share code, notes, and snippets.

@claudioweb
Last active July 4, 2017 13:11
Show Gist options
  • Save claudioweb/544ba9aa1e4f91df78d9c8e3a8d8884a to your computer and use it in GitHub Desktop.
Save claudioweb/544ba9aa1e4f91df78d9c8e3a8d8884a to your computer and use it in GitHub Desktop.
Trazer campos de post e de usuário
<?php
get_field('nome_do_campo',$id_post); // id do POST
get_field('nome_do_campo','user_'.$id_user); // id do usuário
get_field('nome_do_campo', 'options'); // campo registrado como opção
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment