Custom PHP Page Using WordPress login
Why don’t you make it these way: 1) Create Page Template 2) Check if user is logged in 3) if is use $wpdb global var to access database 4) do your stuff with form it may look like: /** * Template Name: User Form 1 **/ if( ! is_user_logged_in() ){ wp_redirect( home_url() ); exit; } … Read more