Connection in specific category
-
Hi,
In my template I would like to know if connection is in a specific category.
This gives me all categories:
$entry->getCategoryBlock(array( 'separator' => ', ' ));
I thought $entry is a string so I can use:
if (strpos($entry, 'categoryname') !== false) { echo 'true'; }
But that doesn’t work.
What am I doing wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Connection in specific category’ is closed to new replies.