Hello,
Is it possible to check if a group is in a specific category?
I would like to add a code in the group template, that will be something like this:
<?php
$cat_id = get-current-groups-id;
if( $cat_id = '11') {
echo 'This group is in category ID 11';
}
?>
I am aware that the above code is not valid, but i am asking if there is a way to get that working.
Thank you!
Is it possible to check if a group is in a specific category?
I would like to add a code in the group template, that will be something like this:
<?php
$cat_id = get-current-groups-id;
if( $cat_id = '11') {
echo 'This group is in category ID 11';
}
?>
I am aware that the above code is not valid, but i am asking if there is a way to get that working.
Thank you!