I have a unique requirement for related entries and am at a loss for how to implement the corresponding logic.
We have two category groups: SECTOR and GEOGRAPHY. The requirement is to list “related” entries where SECTOR matches the current entry but GEOGRAPHY does NOT.
i.e. CurrentEntry:Sector = RelatedEntries:Sector AND CurrentEntry.Geography != RelatedEntries:Geography
As I’m new to EE, I’ve discovered how to setup basic related entries but am not sure how to incorporate this additional logic. Any help would be greatly appreciated!
{exp:channel:entries channel="blog" limit="4" related_categories_mode="yes" custom_fields="yes"}
<h4>{title}</h4>
<p>{/exp:channel:entries}