How write a conditional for multiple post parents?
-
Hello guys,
Looking to write a condition to show a particualr portion of a navigation if the post parents are 205, 203, 202.
Here is what I got:
<?php if(is_page('issues') || $post->post_parent == '205' ){ ?>
I would like to just add a few more post parent id’s is that possible?
Like:
<?php if(is_page('issues') || $post->post_parent == '205', '203','202' ){ ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How write a conditional for multiple post parents?’ is closed to new replies.