Hi all,
Im looking for advice on how to make login and logout wordpress link work on non wordpress pages. I have already included:
<?php
require('blog/wp-blog-header.php');
?>
and when I add:
<?php wp_loginout(); ?>
or
<?php
if ( is_user_logged_in() ) {
echo 'Welcome, registered user!';
} else {
echo 'Welcome, visitor!';
};
?>
it seems like it does not recognize that Im loged in wordpress. Any idea what other SP files I also should include so this thing work?
Thanks!