Skip to content

Instantly share code, notes, and snippets.

@vajrasar
Created October 15, 2013 13:23
Show Gist options
  • Save vajrasar/6991495 to your computer and use it in GitHub Desktop.
Save vajrasar/6991495 to your computer and use it in GitHub Desktop.
<?php //do not include this php tag
add_action ('genesis_after_entry', 'my_custom_loop_func');
function my_custom_loop_func() {
if(is_home())
{
global $wp_query;
if( 2 == $wp_query->current_post ) {
echo '<div class="ad_between"> Hi I am Your Ad </div>';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment