[Resolved] Hide cpt from non logged in users

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #30714

    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”.

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #30720

    Hi Hugo,
    this can be achieved by settings post type as non public(setting public to false in the post type registration).


You must be logged in to reply to this topic.

This topic is: resolved