Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress - Display all custom fields
<?php
$custom_fields = get_post_custom();
foreach ( $custom_fields as $field_key => $field_values ) {
foreach ( $field_values as $key => $value )
echo $field_key . ' - ' . $value . '<br />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.