-
-
Save Bicarbona/4e3bfa929e8631351a0b to your computer and use it in GitHub Desktop.
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 | |
function add_footer_info($content) { | |
if( is_single() && is_main_query() ) { | |
$content .= get_template_part('includes/blog', 'author'); | |
} | |
return $content; | |
} | |
add_filter('the_content', 'add_footer_info', 20); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment