qTranslate is breaking my dates
-
I use the following PHP code in my footer to display the copyright information for my site:
<span class="copyright"> <?php $post_age = date( 'Y' ) - get_the_time( 'Y' ); if($post_age > 1 ) { ?> <?php echo the_date( 'Y', '© ' ); ?>-<?php echo date( 'Y' ); ?> <?php bloginfo( 'name', 'description' ); ?> <?php } else { ?> <?php echo the_date( 'Y', '© ' ); ?> <?php bloginfo( 'name', 'description' ); ?> <?php }; ?> </span>
It’s supposed to display “Copyright 2013” on a page that was created this year and “Copyright 2009-2013” for a page that was created in 2009. This was working perfectly well until I installed qTranslate. If I put in a custom date format for English under settings, it displays “Copyright September 6, 2013-2013,” which is no good. How can I make this work with qTranslate?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘qTranslate is breaking my dates’ is closed to new replies.