Last active
January 13, 2017 21:41
-
-
Save dannydickson/5ce6cf471a4ba96b18aba6a423efefec to your computer and use it in GitHub Desktop.
Add custom div to blog page
This file contains hidden or 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
// add custom div to blog page | |
function my_content($content) { | |
global $post; | |
return '<div class="blog-wrap">'.$posts.'</div>'; | |
} | |
add_filter('the_content', 'my_content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment