I'm trying to show some specific text on top of the featured images depending on their IDs. Some of the featured images will have the same text.
$post_thumbnail_id = get_post_thumbnail_id();
if($post_thumbnail_id =='2030') {
echo '<span>Location</span>';
}
How do I check the array of $post_thumbnail_id?
The following example does not work.
if($post_thumbnail_id == array('1000','2000'))
in_array()
?