Im trying to enable the admin bar on all pages but one titled "Registration" on my Wordpress site..The function below isnt working.. Any ideas? Thanks!!
show_admin_bar( true );
if (is_page( 'registration' )) {
show_admin_bar( false );
}
Im trying to enable the admin bar on all pages but one titled "Registration" on my Wordpress site..The function below isnt working.. Any ideas? Thanks!!
show_admin_bar( true );
if (is_page( 'registration' )) {
show_admin_bar( false );
}
Try adding this little piece of code in to the page:
add_filter('show_admin_bar', '__return_false');