Last active
August 29, 2015 14:05
-
-
Save KingYes/32df9c22efd09315c046 to your computer and use it in GitHub Desktop.
Add sidebar area after WP Content
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
<?php | |
function pojo4321_add_sidebar_area( $content ) { | |
ob_start(); | |
dynamic_sidebar( 'YOUR SIDEBAR AREA NAME' ); | |
$content .= ob_get_clean(); | |
return $content; | |
} | |
add_filter( 'the_content', 'pojo4321_add_sidebar_area', 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment