Created
September 23, 2017 23:01
-
-
Save braddalton/14a5f5cd8d4c26ec40793afcba6e81b6 to your computer and use it in GitHub Desktop.
Shortcode Before Title On Single Posts In Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'genesis_before_entry', 'vr_before_entry' ); | |
function vr_before_entry() { | |
if ( ! is_singular( 'post' ) ) { | |
return; | |
} | |
echo do_shortcode('[your_shortcode_handle]'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment