Skip to content

Instantly share code, notes, and snippets.

@badcrocodile
Last active December 19, 2015 14:49
Show Gist options
  • Save badcrocodile/5971763 to your computer and use it in GitHub Desktop.
Save badcrocodile/5971763 to your computer and use it in GitHub Desktop.
Prints a custom field value by name.
<?php
// Prints the custom field of your choice
$my_custom_field = $custom_fields['gcfx_art_category_field_id'];
foreach ( $my_custom_field as $key => $value )
echo $key . " => " . $value . "<br />";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment