Help Explain is_single() Condition
-
I’m trying to echo some text in a sidebar if we are displaying a single post. I’m having trouble understandin the is_single() conditional statement.
This is the line that doesn’t seem to work:
if (is_single())
{
echo ‘this is a single post’
}The statement is in sidebar.php. What am I doing wrong? Thanks,
Ed
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help Explain is_single() Condition’ is closed to new replies.