Removing only “on” and “at”
-
Hi,
If I add this code to functions file it will remove the time as well together with “on” and “at”. Only date will be visible.
Do you have a code to remove only “on” and “at” and keep date and time?
Thanksfunction tifd_fix_meta_output( $content ) { //Change publication date from return str_replace( 'on', '', substr( $content, 0, strpos( $content, 'at' ) ) ); } add_filter( 'feedzy_meta_output', 'tifd_fix_meta_output' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing only “on” and “at”’ is closed to new replies.