This may be easy but I've been looking and can not figure it out.
I've had a bad couple of days, usually I can struggle through this stuff but just can't seem to find an answer to this.
I got the below from the wordpress codex...
Basically I want to continue to add to that but if I were to add another line like..
I get a t-string error. I know I can do it with category pages but I'd
rather add 10 or 15 lines to this then create 10 or 15 category pages.
I've tried it a million different ways and got a million different errors,
It shouldn't be that difficult but I guess for someone that doesn't know a whole lot about php...
Anyway, and assistance would be appreciated.
I've had a bad couple of days, usually I can struggle through this stuff but just can't seem to find an answer to this.
I got the below from the wordpress codex...
Code:
<?php if (is_category('Category A')) { ?>
<p>This is the text to describe category A</p>
<?php } elseif (is_category('Category B')) { ?>
<p>This is the text to describe category B</p>
<?php } else { ?>
<p>To be left blank or removed</p>
<?php } ?>
Code:
<?php if (is_category('Category A')) { ?>
<p>This is the text to describe category A</p>
<?php } elseif (is_category('Category B')) { ?>
<p>This is the text to describe category B</p>
[COLOR=LemonChiffon]<?php } elseif (is_category('Category C')) { ?>
<p>This is the text to describe category C</p>[/COLOR]
<?php } else { ?>
<p>To be left blank</p>
<?php } ?>
rather add 10 or 15 lines to this then create 10 or 15 category pages.
I've tried it a million different ways and got a million different errors,
It shouldn't be that difficult but I guess for someone that doesn't know a whole lot about php...
Anyway, and assistance would be appreciated.