I have been trying to create a conditional line that allows me to add more than one ID for a specific custom post type. I use something like the following for single IDs, but I can’t figure out how to do it for multiple IDs:
<?php if ('people' == get_post_type() && get_the_ID() == 107) { ?>
I have been trying to say something like: If the custom post type is people and the ID is either 107, 109, or 111, then do this. Else, do thisâ¦
Is this possible with custom post types?
You can do it like