Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created August 25, 2012 23:04
Show Gist options
  • Save claudiosanches/3471980 to your computer and use it in GitHub Desktop.
Save claudiosanches/3471980 to your computer and use it in GitHub Desktop.
Get The Author ID
<?php
$author = get_the_author_meta('ID');
if ($author == 1) {
echo 'faça isso';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment