WordPress PHP in hello.html
-
Do you know how to get something like the WordPress PHP code below working in a HTML file and not a file with a PHP extension? I know the PHP code works in a PHP file.
<html> <head></head> <body> <?php require('http://agreatdream.com/wp-blog-header.php'); ?> <?php echo "You are here."; if (is_user_logged_in()){ echo "You are logged in.\n"; } else { echo "You are not logged in.\n"; }; ?> </body> </html>Glen
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘WordPress PHP in hello.html’ is closed to new replies.