followtheboat
Programmer
Hi, newbie here.
I have a condition that displays a call from the database first BEFORE displaying my text, when the code is the other way round. It should say 'You are viewing all excerpts from (date)' when instead it is displaying '(date)You are viewing all excerpts from'.
Any clues?
I have a condition that displays a call from the database first BEFORE displaying my text, when the code is the other way round. It should say 'You are viewing all excerpts from (date)' when instead it is displaying '(date)You are viewing all excerpts from'.
Any clues?
Code:
<?php
if (is_archive())
{
echo 'You are viewing all excerpts from' . the_time('F Y');
}
elseif (is_single()) { echo "blog"; }
?>