Skip to content

Instantly share code, notes, and snippets.

@woogist
Last active December 16, 2015 12:39
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 woogist/5436089 to your computer and use it in GitHub Desktop.
Save woogist/5436089 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'woo_filter_post_meta', 'woo_custom_filter_post_meta', 20 );
function woo_custom_filter_post_meta ( $content ) {
global $wp_query;
$current_count = $wp_query->current_post + 1;
if ( $current_count == 1 ) {
$content .= ' '.do_shortcode( '[twitter_follow username="woothemes"]');
}
return $content;
} // End woo_custom_filter_post_meta()
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment