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.
- The topic ‘Condense PHP’ is closed to new replies.