Skip to content

Instantly share code, notes, and snippets.

@shanestillwell
Forked from anonymous/brettneedshelp
Created May 8, 2010 02:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shanestillwell/394253 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