Using the following snippet, you will be able to show all custom fields for each of WordPress posts.
1 2 3 4 5 6 7 8 9 10 11 12 | add_action( 'all_admin_notices', 'wpsnipp_show_all_custom_fields' ); function wpsnipp_show_all_custom_fields() { if ( isset( $_GET['post'] ) ) { $post_id = absint( $_GET['post'] ); ?> <div id="message" class="updated"> <h3>All post meta:</h3> <xmp><?php print_r( get_post_meta( $post_id ) ); ?></xmp> </div> <?php } } |
Snippet Source/Credit: WPSnipp