Show all pages belonging to certain group

Hi there,

I would like to create a page that dynamically shows all pages/posts belonging to a certain group restrictions…

Example: A user belongs to the “premium” group and I want to present him/her with a list of pages that he/she has access to. So my logic is “which pages can this user see” rather then “can the user see this page” returning me an array of items associated with the group rather then a “true/false”.

What might be the best way to go about this?

Thanks in advance


Comments

One response to “Show all pages belonging to certain group”

  1. Hi prowillen,

    There is a custom shortcode created by Antonio in GitHub, which lists the posts that the current user has access.

    Kind regards,
    George

Share