Plain Text Pages/Posts in WordPress

While experimenting with WordPress i was tasked with a situation where i am suppose to present some static text content on the website. However uploading a text file was out of question and the author wanted to keep everything controlled inside WordPress.

So i created a simple text only theme template for him and this combined with the plugin allowing custom permalinks provide us with options of having a custom name and still showing the WordPress page as static text only page.

Template Page is available online at : https://github.com/anantshri/wordpress_tricks/blob/master/plain_text_page.php

Source Code for viewing pleasure.

[github userid=”anantshri” repoid=”wordpress_tricks” path=”plain_text_page.php” language=”php”]

P.S. I suspect there might be better ways of dealing with this situation but my limited google skills didn’t provided a result in first 5 minutes so instead i spend 2 minutes on crafting this. If you do know a better way then feel free to suggest it via comments.

Leave a Comment

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

Scroll to Top