New answers tagged

0

This is just a modification of timshutes' answer - if you want specific pages to require login and don't want to put them into a custom post type, you can add to functions.php: add_shortcode('need_login', 'shortcode_needLogin'); function shortcode_needLogin() { if (!is_user_logged_in()) { auth_redirect(); } } And then at the top of the ...


0

By default, WordPress posts set to private are visible to admins, and you can distinguish them on the frontend because they have 'Private:' prepended to their title. However, you might have plugins installed that are modifying this behaviour. It could be your capability management plugin, or it could be WooCommerce. The specifics of third-party plugins are ...



Top 50 recent answers are included