I am using some code on my static pages to display a logged in status. Basically if you are logged in it shows different links then if you are not logged in. I have a variable to include the amember login check. Then I have code to display links based on your status. When I add the above code to the Wordpress header, I get an error. Any ideas ? Would the wordpress plugin solve this ? I don't want anyone to have to login to use wordpress though.
Possible wordpress use some global variables that have the same name as in aMember. But in your code I found that this: <?php include $_SERVER["DOCUMENT_ROOT"] . '/amember/config.inc.php'; ?> is not necessary because you don't use any aMember functions. Just session variables. So replace that to session_start() it should work.