[Resolved] how to dynamic Category group at post edit by role with code

Home Forums Support [Resolved] how to dynamic Category group at post edit by role with code

Home Forums Support how to dynamic Category group at post edit by role with code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2390524
    martin_ym

    —— 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

    #2390599
    Fernando
    Customer Support

    Hi Martin,

    To clarify, are you wanting to exclude certain posts of specific categories from appearing in your Blog Page based on roles?

    #2390783
    martin_ym

    Yes, when the user add/edit posts while corresponding specific categories by user role, hide exclude categories ids
    It is maybe out of GP support, I am appreciated if get any help.

    #2391025
    Fernando
    Customer Support

    Oh. You’ll need custom code for that.

    It would be best to reach out to WordPress itself with regards to this as this would be out of our scope and expertise.

    Here’s a link you may go to: https://wordpress.org/support/forum/wp-advanced/

    #2392258
    martin_ym

    Thanks for help and I find solution both code and plugin How to Restrict WordPress Categories to Roles

    #2397485
    Fernando
    Customer Support

    You’re welcome Martin thanks for sharing!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.