Hot answers tagged


If I understand properly, you should be able to do this: $entries = \craft\elements\Entry::find() ->section('yourSection') ->category(['and', 695]) ->relatedTo([698,698])->all(); Assuming category is the name of your relational field, you can use that to pass the and condition (though with one element only it wouldn't be needed) then ...


Not able to comment, so trying an answer. Did you tried to build a custom hierarchy by scrolling the content of each level in a custom object ?

Only top voted, non community-wiki answers of a minimum length are eligible