Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created May 18, 2015 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/6a387e0960baa0106aa4 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/6a387e0960baa0106aa4 to your computer and use it in GitHub Desktop.
Insert content after the entry with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Insert content after the entry with Genesis (HTML5)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-after-entry/
*/
add_action( 'genesis_after_entry', 'rtug_after_entry' );
function rtug_after_entry() {
echo '<p><strong>A piece of extra content after the entry</strong></p>';
}
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Insert content after the entry with Genesis (XHTML)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-after-entry/
*/
add_action( 'genesis_after_post', 'rtug_after_entry' );
function rtug_after_entry() {
echo '<p><strong>A piece of extra content after the entry</strong></p>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment