Viewing 4 replies - 1 through 4 (of 4 total)
  • whoaloic

    (@whoaloic)

    I second that demand.
    I have set a custom post type where I want the archive public but the single private.

    I manage to control access to custom post type by adding this code to my custom post type single template.
    I also add a page where I put a form to register to my site.

    <?php if ( is_user_logged_in() ) { ?>
    ...
    <?php  } else { ?>
                <?php wp_redirect( get_permalink($postid) );
    exit();?>
    <?php } ?>

    Anonymous User

    (@anonymized-6656123)

    This has been added to 4.0.11, thanks for the suggestion (it only shows up after you enable the custom post type and click save).

    Is it possible to set custom post type to members only as default?

    I want to set my forum topics and replies to members only but I don’t see any change when i set them in Post Type Default Options in the settings.

    So when i add in new topics, i want them to be set to members only rather than me going and changing them each time.

    Any solution?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘(feature request) set default state for custom post type’ is closed to new replies.