changing a pages header dynamically
I am currently using this code to include specific content within a
specified page
function add_profile( $content ) {
if( is_page('profile')) include_once('page-profile.php');
else { }
}
add_filter('the_content','add_profile');
Is there a way to alter the h1 for this page as well, allowing me to
inject the current users display_name rather than the default wordpress
page name?
No comments:
Post a Comment