—— question
how to dynamic Category group at post edit by role with code?
I searched here and could not find nearby solution
—— refer to
https://docs.generatepress.com/article/exclude-categories-from-posts-page/
—— Category
— assume cat id = number, E.g. cat 12 id=12
— cat
cat 1
-cat 11
-cat 12
cat 2
-cat 21
-cat 22
–cat 221
–cat 222
-cat 23
cat 3
…
—— user role
role1 permit Category group: cat 1, cat 3
role2 permit Category group: cat 2, and exclude cat 23
group parent auto include children, unless exclude