Hello,
I've installed wordpress 3.0.1 on my site (on a subdirectory)
http://example.com/blog/
i have a simple php page
http://example.com/about-us/
i've added <?php include 'blog/wp-blog-header.php'; ?> in the header of this page and <?php wp_loginout(); ?> somewhere in the page...
this code display's Log in all the time
how can i resolve this problem?
you want the login/out to disapear after you are logged in?
No, i want it to remain there, but change to Log out when i'm logged in and Log in when i'm logged out
Excuse me for my bad english, but i'm not a native english speaker.
Thanks in advance.
I do not use this code, so I am a little confused. Can I ask this first...if you log in from the side bar, does it work?
If it does work, can you click a button ON THE SIDE BAR to log out?
yes it works (when i'm on /blog/ ) but you need to have in mind that
http://example.com/blog/ is an wordpress instalation
and
http://example.com/about-us/ a simple php file with
that wp header include and that wp login code.
would you mind sharing your site URL?
PS: <?php wp_loginout(); ?> is the code from default sidebar.php
the site is not online, it's on localhost (it's not done yet, i am still working on it.)