Hi Nayeem,
No, we have created some categories (edit-tags.php?taxonomy=wpdmcategory&post_type=wpdmpro)
Each package is in a category.
The category “Press release” should not be accessible by users having the role “Media” (when editing a category, in the block “access”, the role “media” is not checked).
On the frontend, we have a made a page, with this code :
$args = array(
'taxonomy' ► 'wpdmcategory',
'orderby' ► 'name',
'order' ► 'ASC',
'parent' ► 0,
'hide_empty' ► 0,
);
$cats = get_categories($args);
But all the categories are displayed, even if I’m logged with an account having the role “Media” (“Press release” should not be returned by the query).
Maybe we need to add some controls, please let us know.