WordPress, Pages, and php includes

It has been a long time coming but I finally found a way to integrate static content into WordPress’s Pages. Pages with a P are like posts but exist outside their time-based organization.

I have had this search query cloud forever but had no way to integrate it into the site, since it gets updated nightly, WordPress doesn’t allow you to include files in posts or [Pp]ages and I didn’t really want to create a static WordPress frame to wrap around it. There had to be a Better Way.

It’s really just as easy as the author claims: I had to make one adjustment to allow for files with a .txt ending but I suspect I didn’t really need to do that.

There are a bunch of WordPress plugins that claim to make this possible. Not one of them did. And this one is designed to protect you from yourself by only including files from a designated directory reserved for includes.

Thanks again, Jack.

Leave a Reply

Your email address will not be published. Required fields are marked *