Created
September 5, 2019 08:15
-
-
Save Inzman/e8a5cb25fb949bcda26e5f091b3f9df7 to your computer and use it in GitHub Desktop.
Dump All Wordpress 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
| <h3>All Post Meta</h3> | |
| <?php $getPostCustom=get_post_custom(); // Get all the data ?> | |
| <?php | |
| foreach($getPostCustom as $name=>$value) { | |
| echo "<strong>".$name."</strong>"." => "; | |
| foreach($value as $nameAr=>$valueAr) { | |
| echo "<br /> "; | |
| echo $nameAr." => "; | |
| echo var_dump($valueAr); | |
| } | |
| echo "<br /><br />"; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment