Created
          June 21, 2016 22:59 
        
      - 
      
- 
        Save cseringgo/a9c5216e1ec20c9b63e252b7029fd563 to your computer and use it in GitHub Desktop. 
    Wordpress - Display all custom fields
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?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