I created multiple PHP pages linked to WordPress's DB, where I created a specific table to get information from a posted form. I want people to login using their WordPress credentials to access the page where I show the content of this table.
I tried this:
//wp-admin //Setup location of WordPress $absolute_path = $_SERVER['DOCUMENT_ROOT']; $path_to_file = explode( 'wp-content', $absolute_path ); $path_to_wp = $path_to_file; //Access WordPress require_once( $path_to_wp.'/wp-load.php' );
But this doesn't work.