Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2010 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save anonymous/394247 to your computer and use it in GitHub Desktop.
Save anonymous/394247 to your computer and use it in GitHub Desktop.
function force_of_gravity() { ?>
if (get_post_meta(get_the_ID(), "image", true)) || (get_post_meta(get_the_ID(), "text", true)) { ?>
<b>Submitted by: </b><?php echo get_post_meta(get_the_ID(), "name", true) ?> in <?php echo get_post_meta(get_the_ID(), "location", true); ?>
<?php endif; ?>
<?php
}
add_action('thesis_hook_before_content', 'force_of_gravity');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment