Hack: Create a Simple Non-WordPress Page

I came across this issue while trying to build a sitemap script inside of a WordPress plugin. In the past, I’ve just created a stand-alone PHP page that accesses WordPress and displays the sitemap. But I wanted to keep this code inside the plugin code. The problem is, you typically use plugin code to create contain insider a WordPress frame. But I just wanted plain text here, not the header and footer and all of that.

Continue reading “Hack: Create a Simple Non-WordPress Page”

Hack: Alter Post Title Tag Depending On the Category

So yesterday I showed you how to change the post title, as in the H1 tag of the post page, based on the category of the post. That doesn’t change the title tag, however. Users don’t see or pay attention to the title tag as much, especially with browser tabs only offering limited space for them. But search engines see these and use them in search results.

Continue reading “Hack: Alter Post Title Tag Depending On the Category”