Post visibility option to theme front-end for author to select?
Wherever you want to provide this functionality, put the following: <?php if (is_user_logged_in() && current_user_can(‘publish_posts’)) { $ID = get_the_ID(); $status = get_post_status($ID); ?> Visibility: <form id=”update_post_visibility” name=”update_post_visibility” method=”post” action=”/update-post-visibility”> <input id=”visibility-radio-public” type=”radio” <?php if ((‘publish’ === $status) && ! post_password_required($ID)) echo ‘checked=”checked” ‘; ?>value=”public” name=”visibility” /> <label for=”visibility-radio-public”>Public</label> <br /> <input id=”visibility-radio-password” type=”radio” <?php if … Read more