WordPress Plug-in - lists posts on a page
I have a couple of pages on my blog to highlight some of my interests. For example, cooking and more recently, the restoration of a tower clock.
What I wanted to do was to have those pages include a list of posts. I could have solved it by creating “templates” by adding custom PHP files for the related categories but that really was not what I wanted. So, I set out to write a plug-in.
Now, on any page (or even on a post) I can insert a “key” and my new plug-in will expand it to a list of posts (titles and links to those posts).
For example, if I inserted [list-posts=Racing] into a page or post, it would be replaced by an indented series of links separated by line breaks, one for each post under the category or ‘Racing’.
If you find a bug, feel free to let me know and I’ll take a look but please don’t ask for enhancements. The plug-in code is exceedingly simple and I am not planning to make it more general purpose.
Download list-posts.zip 1.0



