Hallo,
da ich mich nicht so gut mit PHP auskenne, eine Frage an euch PHP-Profis :-)
Ich möchte diesen Code
PHP
function mein_copyright() {
global $wpdb;
$copyright_dates = $wpdb->get_results("
SELECT
YEAR(min(post_date_gmt)) AS firstdate,
YEAR(max(post_date_gmt)) AS lastdate
FROM
$wpdb->posts
WHERE
post_status = 'publish'
");
$output = '';
if($copyright_dates) {
$copyright = "© " . $copyright_dates[0]->firstdate;
if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {
$copyright .= '-' . $copyright_dates[0]->lastdate;
}
$output = $copyright;
}
return $output;
}
Alles anzeigen
verwenden, um ein dynamisches Copyright in meinem Footerbereich anzuzeigen; gefunden hier.
Ich möchte das jedoch dahingehend anpassen, dass als "first date" nicht das Datum des ersten Postings ausgespuckt wird, sondern fix "1999".
Könnte mir jemand aushelfen bitte?
Danke.