Conversation
supportThank u for plugin. So please tell me how i can exclusion some pages or posts or my main page where i want to see dates? Example my theme have index page where template have <?php the_time(‘F jS’) ?> and your plugin remove date but not change to another. On posts its working fine but on custom index page – date deleted but not publish another “hide” date. So like i understand your plugin replace all <?php the_time function to css code. How i can change my custom page for publishing original date? <script language=”javascript” type=”text/javascript”>document.write(“<?php the_time(‘F jS’) ?>”);</script> iv tryed javascript but your hack delete function inside java and its not work… so how to add ignore code to my template?
you can add to the functions.php of your theme code: function hide_date2($tdate = '') { if ( !is_admin() ) { if (is_single('1764')) { $temp = str_replace ('<span class="sdata" title="','',$tdate); $temp = str_replace ('">','',$temp); $temp = str_replace ('</span>','',$temp); return $temp; } else { return $tdate; } } } add_filter('get_the_date', 'hide_date2', 999); this code restore original date on single page with id 1764.
you can add to the functions.php of your theme code: function hide_date2($tdate = '') { if ( !is_admin() ) { if (is_single('1764')) { $temp = str_replace ('<span class="sdata" title="','',$tdate); $temp = str_replace ('">','',$temp); $temp = str_replace ('</span>','',$temp); return $temp; } else { return $tdate; } } } add_filter('get_the_date', 'hide_date2', 999); this code restore original date on single page with id 1764.