Hi, im trying to hide the meta author/date/categories in post belonging to certain categories,
Any reason why this code shouldnt work (its not working for me)
add_filter( 'option_generate_blog_settings', 'custom_page_settings' );
function custom_page_settings( $options ) {
if ( in_category( array(1031,1032,1020,1016,1033,1017,1015,1046,1041,1043,1034,1018,1035,1040,1044,1036,1037,1045,1022,1038,1014,1051,1,1050,1042,1054,1039,1053,1021,1048,1052,1049,1047))){
$options['author'] = false;
$options['date'] = false;
$options['categories'] = false;
}
return $options;
}
thanks