get_the_date() does not support parameters?
-
I found a problem woth the handling of your get_the_date()function.
I am using the Retro-theme (https://themeforest.net/item/retro-premium-vintage-wordpress-theme/5075763). On the blog-page it shows a modified date. This is accomplished by using fomatting-parameters on the get_the_date()-function. After a look in the sourcecode of the Ceceppa-plugin it seems to me, that you do not evaluate any formatting-strings in your version of the function.
function get_the_date() { global $post; $format = $this->_current_language->cml_date_format; if( empty( $format ) ) $format = get_option( 'date_format' ); return mysql2date( $format, $post->post_date ); }
Can you give me instructions on how to change your code so it honors the formatstrings? (e.g. “j” or “F”)
Thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘get_the_date() does not support parameters?’ is closed to new replies.