lundi 5 janvier 2015

Custom Php Page Using login of Wordpress

i create multiple php pages linked to the db of wordpress where i create a specific table to get information of a posted form. i want that people need to login on the wordpress login to access the page where i show the content of the 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[0];


//Access WordPress require_once( $path_to_wp.'/wp-load.php' );


but doesnt work, please can someone help me!


Aucun commentaire:

Enregistrer un commentaire