pooker Posted July 20, 2008 Share Posted July 20, 2008 Ok normally on a wordpress there is a sidebar that has a login tab, then when you hit that it takes you to a login page which is in directory ./wordpress/wp-login.php My problem is my login box is a part of my header which is in the theme I am coding so it is in ./wordpress/wp-content/themes/mytheme/header.php I have already succesfully coded the login box into my header, but I have no way to call a page that is in a higher up directory. I cannot use include(www.mysite.com/etc/etc ) because we are not allowed to call urls like that on the server. Is there a way to call this properly that will work? Thankx Link to comment https://forums.phpfreaks.com/topic/115746-help-with-wordpress-integrationphp/ Share on other sites More sharing options...
jonsjava Posted July 21, 2008 Share Posted July 21, 2008 following your tree structure, add this: ../ to have it go up one level. each level, add that. so, if the folder you are wanting included is 2 levels up, do this: include("../../file.php"); Link to comment https://forums.phpfreaks.com/topic/115746-help-with-wordpress-integrationphp/#findComment-595136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.