Site logo

Archived topic

Changing the Copyright Message, full date

7 replies · Started by marquardt on July 6, 2018

Viewing posts 1–8 of 8

Is it possiblke to enter the whole date into the Copyright Message?
Means like this: 06.07.2018
So far I know %current_year% only. How to use DAY and MONTH?
Regards, Tilo

Hi there,

Add this snippet to create a shortcode:

add_shortcode( 'footer_date', 'lh_footer_date' );
function lh_footer_date() {
    ob_start();
    echo date('jS F Y');
    return ob_get_clean();
}

Then add this shortcode inside copyright message:
[footer_date]

Add this snippet to ... Where? What place?

Leo it works ... thanks.
How may I switch the result "7th July 2018" to a German date "07.07.2018"?

Many thanks ... it works.

No problem!

This archived topic is closed to new replies.