Skip to content

Instantly share code, notes, and snippets.

@laras126
Created March 20, 2011 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save laras126/878792 to your computer and use it in GitHub Desktop.
Save laras126/878792 to your computer and use it in GitHub Desktop.
show meta-info in post
<?php
// Display artwork info in post, below post content
add_filter('thematic_post', 'display_artwork_info');
function display_artwork_info() {
global $artworkinfo_metabox;
echo the_content();
echo '<h4>';
// get the meta data for the current post
$artworkinfo_metabox->the_meta();
// get value directly
echo '<hr />';
$artworkinfo_metabox->the_value('title');
echo '<br />';
$artworkinfo_metabox->the_value('collabs');
echo '<br />';
$artworkinfo_metabox->the_value('dimen');
echo '<br />';
$artworkinfo_metabox->the_value('additional');
echo '</h4><br />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment