How can I restrict access to specific parts of a page, not just the page itself?
If you’re wanting to limit by a capability (built in or custom) you can use current_user_can() and pass the appropriate capability. if( current_user_can(‘manage_options’) ) { echo “Hi there user who can manage options’; } Keep in mind that the post or page content is one chunk and you would need to do something much more … Read more