Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Add Bootstrap Components to WordPress Theme Finishing Up Our Bootstrap Slideshow Carousel

Hemen Nabi
Hemen Nabi
15,192 Points

Outputting a list of available meta field keys for a given post?

How did you find the _wp_attachment_image_alt meta key? Is there a way to var_dump available meta fields, even the ones that are empty?

<?php

$meta = get_post_meta( get_post_thumbnail_id() );
echo var_dump($meta);

?>