A while back, I posted about how I use a simple text file to track my reading list, and then use that as my authoritative source for tracking my reading. I showed, for instance, how I use a short code in WordPress to neatly format that text file so that I never have to update WordPress when I add a new book to my list. It updates automatically.
A few people asked if I would share my code, and now that I’ve had a chance to write up some simple instructions, I’ve made the code available on GitHub.
As always, this code is use-at-your-own-risk. It has worked without a problem since I started using it last month. While you can use this code right in your main theme, I recommend using it as part of a child-theme, as it is much easier to maintain.
Feel free to use it, and modify it as you like!
I’ve been waiting patiently for this ever since you said you might make it available. I can think of numerous reasons to pull content from plain text files — especially on “static” WordPress pages!
Thanks very much! Greatly appreciated. 🙂