PHP: IF statement around HTML
-
Hi! I am not an PHP expert but managed to get the calendar displayed only when the user is in category 1 or the frontpage by using the following:
<li id=”calendar”>
<?php if (in_category(1)) get_calendar(); ?>I would like to know how I can change this to the following construction:
IF in category 1
LI
command
/LI
END IF
Thanks a lot for you help!!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP: IF statement around HTML’ is closed to new replies.