try add this to functions.php
function dez_remove_cpt_postdate() {
global $post;
if( is_singular() && get_post_type != 'post') {
echo '<style>'; ?>
#custom span.post-date { display:none !important; }
<?php
echo '</style>';
}
}
add_action('wp_head','dez_remove_cpt_postdate');
Thank you for your quick reply..! But i want to confirm one thing, in the above code should i replace the ‘post’ with my CPT name & can i use more than one cpt by just putting a COMMA in between them, just like ‘post’,’cpt1′,’cpt2′ etc…
replace this
if( is_singular() && get_post_type != ‘post’) {
with
if( is_singular() && ( get_post_type == ‘CPT1’ || get_post_type == ‘CPT2’) ) {
Okay, thank you..! And can i put the code in a custom made functions plugin instead of functions.php, bcoz i dont want to overload the file..!
And thanx once again for your amazing support..!