Essential Grid WP
09.04.2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
function my_post_meta( $content ) { $my_meta = get_post_meta( get_the_ID() ); $my_meta_data = '<pre>' . print_r( $my_meta, true ) . '</pre>'; return $content . $my_meta_data; } if( !is_admin() ) { add_filter( 'the_content', 'my_post_meta' ); } |
The Meta Data will then be shown toward the bottom of the page and look something like the screenshot here:
In the screenshot to the right, the “Original Handle” for “Total Sales” is:
1 2 3 |
total_sales |
and the “Original Handle” for “Sale Price” is:
1 2 3 |
_sale_price |