Loads the WordPress Default Functions
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require ('./wp-blog-header.php');
Loads the WordPress Default Functions
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require ('./wp-blog-header.php');
Step 1 : Login and Logout Condition :
<?php
if ( is_user_logged_in() ) {
echo '<a href="'.wp_logout_url( get_permalink() ).'" title="Logout" class="profile"><input type="button" value="Log out"></a>';
} else {
echo '<a href="'.wp_login_url( get_permalink() ).'" title="Login" class="profile"><input type="button" value="Log in"></a>';
}
?>
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>