Tagged: buddyblog, CPT, restrict access
I set up Buddyblog with a custom most type called “Diary” and added it to the BP activity stream. But when I go directly to the archive page domain.com/diary I can see alle posts even when not logged in. How can I restrict access to this cpt archive and to individual cpt’s to logged in users only?
In other words: the setting “Public” should be “Public only for logged in users”.
Hi Hugo,
this can be achieved by settings post type as non public(setting public to false in the post type registration).Regards
Brajesh
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This topic is: resolved