Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $custom_fields = get_post_custom($post->ID);
- foreach ( $custom_fields as $field_key => $field_values ) {
- if(!isset($field_values[0])) continue;
- if(in_array($field_key,array("_edit_lock", "_edit_last", "_thumbnail_id"))) continue;
- echo "<strong>$field_key:</strong> $field_values[0] <br>";
- }
Add Comment
Please, Sign In to add comment