Last active
September 21, 2015 04:54
-
-
Save reasonstousegenesis/4bad5b9fe69f5356831f to your computer and use it in GitHub Desktop.
Insert extra content directly after the main Post or Page content
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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Insert extra content directly after the main Post or Page content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-after-entry-content/ | |
*/ | |
add_action( 'genesis_after_entry_content', 'rtug_after_entry_content' ); | |
function rtug_after_entry_content() { | |
echo '<p>A piece of extra content directly after the main Post content</p>'; | |
} |
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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Insert extra content directly after the main Post or Page content (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-after-entry-content/ | |
*/ | |
add_action( 'genesis_after_post_content', 'rtug_after_entry_content', 9 ); | |
function rtug_after_entry_content() { | |
echo '<p>A piece of extra content directly after the main Post content</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment