I want to remove entry meta from two different post types. I used the following function:
function custom_remove_meta_header($html){
if(get_post_type() == 'posttype1'){
return '';
}else{
return $html;
}
}
add_filter('tc_render_headings_view','custom_remove_meta_header');
And that worked well. But when i added another post type into the mix, it would not worked by adding:
if(get_post_type() == 'posttype1' , 'posttype2'){
My whole wp site went whitescreen on me.
So I created a second function:
function custom_remove_meta_header_two($html){
if(get_post_type() == 'posttype2'){
return '';
}else{
return $html;
}
}
add_filter('tc_render_headings_view','custom_remove_meta_header');
Now the entry meta is removed from posttype2, but has returned on posttype1. I am going crazy trying to get this to work.
I am using Customizr Pro theme
Please help.Thanks