• Hey Guys,

    I am looking for some advice on a particular requirements we have:

    We require that a certain part of a custom post be only available to a custom selection of users.
    This needs to be set on a per-post basis.

    I.e – 3 particular users should be able to access Post 1 while 2 other users might be able to access Post 2.

    I have tried to use the <?php if( current_user_can(‘custom_user_role) ) { ?> but that assigns right to everyone in the group.

    My thought was to install the Multiple Authors plugin, assign specific authors to specific posts and then somehow call the list of those authors, check if the logged in user belongs to that list and then if so, use similar code as above and write an else statement to exclude all other users.

    Is this possible? Has anyone out there ever tried this or have some suggestions?

  • The topic ‘User post viewing permissions’ is closed to new replies.