Your cart is currently empty!
Restrict all posts for custom post type
—
by
Hi there, how do we just block all posts from a specific custom post type? We want to block groups from seeing all the posts in our custom post type.
Posted in Groups Restrict Categories
Comments
3 responses to “Restrict all posts for custom post type”
Hey Thomas,
By default all posts will be publicly accessible, so in order to block access you need to implement a custom function to run through your posts and assign each one to a group.
Perhaps you should also have a look at Groups API and especially
http://api.itthinx.com/groups/source-class-Groups_Post_Access.html#491-529
This would apply for your existing posts, but if you like to extend it also to new posts, then you need to do the same process when ie the post is published or added.
Hope it helps.
Kind regards,
George
Yes it does, and it’s checked. We don’t want to restrict posts one by one, we want all posts for that post type to be blocked, current and new ones that are made.
Thanks for any further help.
Hi Thomas,
Thanks for using Groups on your site.
The setting required which allows you to restrict various post types, is to select this post type under Groups > Options in Post types section. Does your post type appear in the list rendered?
Kind regards,
George