BLOG

See what we're whipping up!

function wpdev_before_after($content) {
    if(is_page() || is_single()) {
        $beforecontent = 'This goes before the content. Isn\'t that awesome!';
        $aftercontent = 'And this will come after, so that you can remind them of something, like following you on Facebook for instance.';
        $fullcontent = $beforecontent . $content . $aftercontent;
    } else {
        $fullcontent = $content;
    }
    
    return $fullcontent;
}
add_filter('the_content', 'wpdev_before_after');

No comments yet