Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add Custom Field To Genesis Loop
add_action( 'genesis_entry_content', 'function_name', 12 );
function function_name() {
if ( is_category( 'demo' ) )
$value = get_post_meta( get_the_ID(), 'key', true );
if ( ! empty( $value ) ) {
echo '<div class="your-class">'. $value .'</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment