How Do I See Post Meta in WordPress?

If you want to see the post meta data in WordPress, first make sure you have the wp_postmeta function hooked up to your post type. To do this, you’ll need to add the following code to your theme’s functions.php file:

// Add function to get post meta data function get_post_meta($post_id) { $meta = get_post_meta($post_id); return $meta; }

Once you have the function hooked up, you can use it to display the post meta data in your posts. To do this, include the following code in your post’s content:


Post Title:

” alt=”” /> .

If you want to disable the display of post meta data, you can set the post_meta_display variable to false in your theme’s functions.php file.