Probiere mal dieses:
<?php $textarray = array(
array("from"=>"2016-01-01", "to"=>"2016-01-16", "text"=>"dein Text 1"),
array("from"=>"2016-01-17", "text"=>"dein Text 2"),
array("from"=>"2016-01-18", "to"=>"2016-01-25", "text"=>"dein Text 3"),
array("from"=>"2016-06-01", "to"=>"2016-06-25", "text"=>"dein Text 4")
// usw.
);
$now = strtotime("now");
//var_dump(date("d m", $now));
for ($i = 0, $found = FALSE; $i < count($textarray) && !$found; $i++) {
$from = strtotime($textarray[$i]["from"]);
if (array_key_exists("to", $textarray[$i])) $to = strtotime($textarray[$i]["to"]);
else $to = $from;
$to = strtotime("+1 day", $to);
//var_dump(date("d m", $from), date("d m", $to));
if ($now >= $from && $now < $to) $found = TRUE;
}
if ($found) echo($textarray[$i - 1]["text"]);?>
Alles anzeigen
In eine Datei, z. B. oeffnungszeit.php schreiben und mit <?php include("oeffnungszeit.php"); ?> dort wo die Öffnungszeit angezeigt werden soll, einziehen. Wie man das in Wordpress macht, kann ich dir leider nicht erklären.