Support » Plugin: Pods - Custom Content Types and Fields » Cant change Author of a Pod with custom capability

  • Resolved mayanktaker

    (@mayanktaker)


    I made a Pod named Albums with Custom Capability and I created a role Albums Role for that.

    I give myself all the Capability and as I am admin. And I give read and delete capability to Albums role for Albums Pod like read_albums, Delete Albums etc.

    My goal is to post each page for each users in Albums Pod as an Admin and change Author from Admin to users who are in Albums role.

    But I am unable to do that. I only see Admin in Authors select tab in Add New Album page of my Pod.

    In Albums Pods advance tab, in Supports column, I ticked title and Author.

    Why I want all this is because I am building an app and in that I want users to log in and see their content page. And that Content page is Albums Pods pages. where each users is its own author for its post. Just difference is instead of posting by users their own posts, I want to post their page and select them as author.

    I did everything right and it should show the list of users to choose from.

    Everything is in my localhost test environment.

    • This topic was modified 4 months, 1 week ago by mayanktaker.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @mayanktaker

    Sorry for the late reply. Did you manage to find this issue?
    This sounds like a possible but in Pods or WordPress core. Not sure why/how the authors metabox is limited but this is WordPress functionality (Pods only enables the authors box for custom post types).
    Let me know!

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Found that this is actually a limitation within WordPress. It only shows users that are considered “Authors” in that box. Custom roles etc. are not part of that.

    After searching I’ve found that this has to do with the old user level capability (needs to be 1 or higher).
    See: https://codex.wordpress.org/Function_Reference/get_users

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