Condense PHP
-
I apologize if this is in the wrong forum.
I was looking through the conditional tags, and I was wondering if there was a way to condense the php for:
<?php if (is_home()): ?>
I would like to also put is_single in there, is there a way to do this without having to make one for single as well?
I was under the impression that <?php if (is_home()): is_single(); ?> would work. Hopefully that gives you a better idea of what I’m trying to achieve. Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Condense PHP’ is closed to new replies.