Allow access to a page for admins only
<?php /* Template Name: Agency Area */ get_header(); echo ‘<div id=”body”>’; global $current_user; if( in_array( ‘administrator’, $current_user->roles ) ) { echo ‘<div class=”agency_area_menu”>’; wp_nav_menu(); echo ‘</div>’; } else { // echo ‘<p>You do not have the rights required to view this page. Sorry.</p>’; /* or with internationalization (uncomment either, adjust text domain if applicable) */ … Read more