Last active
August 31, 2023 14:54
-
-
Save jonathanbossenger/d96520acd6225ea969f091752a3bca8b to your computer and use it in GitHub Desktop.
A simple PHP "test bed" script to learn about WordPress functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Learn WordPress</title> | |
</head> | |
<body style="margin: 2em;"> | |
<h1>Learn WordPress</h1> | |
<div> | |
<?php | |
// Load the WordPress library. | |
require_once __DIR__ . '/wp-load.php'; | |
$sitename = get_option('blogname'); | |
echo "Hello " . $sitename . '!'; | |
?> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment