08/02/2018 at 4:47 pm
#469083
Keymaster
@ Karen
Here’s the code. I would recommend using the category slug instead.
$categories = array();
$categoryNames = array();
foreach ( $entry->getCategory() as $category ) {
$categories[] = $category->slug;
$categoryNames[] = $category->name;
}
if ( in_array( 'Speaker’s Bureau', $categoryNames ) ) {
//display image here
}
Hope this helps!
