I’d like to collect all of the categories attached to all of the this section’s children pages, how do I merge the lists and remove duplicates? (Categories are being added to subpages using multiselect
.)
Then I’d like to loop through them with links.
- get index of all children
- grab which categories are added to them
- merge all of these categories
- remove duplicates
- foreach loop them
The logic seems easy for me, the syntax is not. Thanks in advance!