Add PHP & HTML Code to Single Post Pages via genesis_entry_content Hook
-
I am currently using the below code to display the Shareaholic, Jetpack Related Posts, and PubExchange below the entry content in a specific order. I am currently using Genesis Simple Hooks to do this, but would prefer to add the code to my functions.php file. I would also like to ensure that this content only shows up on the single post pages.
<?php echo do_shortcode ('[shareaholic app="share_buttons" id="XXXXXXXX"]'); ?> <?php if ( class_exists( 'Jetpack_RelatedPosts' ) ) { echo do_shortcode( '[jetpack-related-posts]' ); } ?> <div id="pubexchange_below_content"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add PHP & HTML Code to Single Post Pages via genesis_entry_content Hook’ is closed to new replies.